Главная страница
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.044 c
3-1119977045
Reals
2005-06-28 20:44
2005.08.07
Как сделать reconnect к MSSQL


10-1098522753
Bend
2004-10-23 13:12
2005.08.07
QuickReport => Word


1-1121449372
lookin
2005-07-15 21:42
2005.08.07
Печать из TStringGrid


14-1121345562
Almaz
2005-07-14 16:52
2005.08.07
"Вера" - однозначно ли это понятие ?


3-1120222202
DesWind
2005-07-01 16:50
2005.08.07
Раскрывающийся список DBLookupComboBox, как раскрыть полностью?