Вниз
Скачать: CL | DM;

[Hint] Private symbol Destroy declared but never used   Найти похожие ветки 

← →
Cobalt ©   (2004-08-09 15:52) [0]

[Hint] FileLog.pas(12): Private symbol "Destroy" declared but never used

Чего-то не понимаю я этого хинта :(

type
   TFileLog = Class (TObject)
   Private
    FFileName:string;
    FHandle:THandle;
    FLogging:boolean;
    Destructor Destroy; reintroduce;
   Public
    Constructor Create;
    Function BeginLogging(AFileName:string;Append:boolean):boolean;
    Procedure StopLogging;
    Function WriteString(s:string):boolean;
    Property FileName:string read FFileName;
    Property Handle:THandle read FHandle;
    Property IsLogging:boolean read FLogging;
   end;

Destructor TFileLog.Destroy;
begin
 if FLogging
 then StopLogging;
 inherited Destroy;
end;


← →
panov ©   (2004-08-09 15:55) [1]

Public
   Constructor Create;
   Destructor Destroy; override;


← →
Cobalt ©   (2004-08-09 16:08) [2]

Ой, спасибо!
Теперь понял, почему "never used" :)


← →
Anatoly Podgoretsky ©   (2004-08-09 16:16) [3]

Как всегда компилятор не обманул :-)


← →
VMcL ©   (2004-08-09 16:26) [4]

>>Cobalt ©  (09.08.04 15:52)

Мдя. Ну ладно уж в private засунул. Но reintroduce - это жестоко.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.027 c
1-1121874412
Igorek
2005-07-20 19:46
2005.08.07
Кодировка файла для чтения/записи из ActiveX обьекта


6-1111270447
falcon39
2005-03-20 01:14
2005.08.07
Server Socket


1-1121848608
Oleg_
2005-07-20 12:36
2005.08.07
Кнопка в stringgrid


6-1114019313
Jetus
2005-04-20 21:48
2005.08.07
Блокировка файла от удаления по FTP


10-1097565795
andrey__
2004-10-12 11:23
2005.08.07
сервис и внешний сервер автоматизсции




   Наверх