
05.11.2010, 10:01
|
 |
Let Me Show You
|
|
Регистрация: 30.04.2010
Адрес: Северодвинск
Сообщения: 5,426
Версия Delphi: 7, XE5
Репутация: 59586
|
|
логируй:
Код:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Memo1: TMemo;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure AssertErrorHandler(const Message, Filename: string; LineNumber: Integer; ErrorAddr: Pointer);
begin
Form1.Memo1.Lines.Add(Message+#13#10+Filename+#13#10+IntToStr(LineNumber));
ShowMessage(Message+#13#10+Filename+#13#10+IntToStr(LineNumber));
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
Assert(False, 'Ошибка моего метода Button1Click');
end;
initialization
AssertErrorProc:=AssertErrorHandler;
end.

__________________
Пишу программы за еду.
__________________
|