Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.08.07;
Скачать: 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 вся ветка

Текущий архив: 2005.08.07;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.048 c
14-1121313091
Soft
2005-07-14 07:51
2005.08.07
Во Второй Мировой Войне виноват Советский Союз.


14-1121352024
Step[B.M.]
2005-07-14 18:40
2005.08.07
Цифровая АТС (АОН - Caller ID) как получить результат АОН на COM


6-1114672921
SH@RK
2005-04-28 11:22
2005.08.07
Как c помощью WinInet закачать HTML страничку по адресу https://


4-1118176862
ATarget
2005-06-08 00:41
2005.08.07
Узнать какие dll - ки запрашивает ехе-шник


3-1119794920
dbLamer
2005-06-26 18:08
2005.08.07
Копирую я из dbMemo в Блокнот...