Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.09.26;
Скачать: CL | DM;

Вниз

метод free не вызывает destroy   Найти похожие ветки 

 
redlord   (2004-09-09 00:23) [0]

всем привет
почему не отробатывает процедура destroy
при вызове метода free для  экземпляра данного класса

procedure TForm1.Button1Click(Sender: TObject);
begin
scan:=tscan.Create(form1);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
scan.Free;
end;
--------------------------------------------------------------
type
 Tscan = class(tobject)
 timer:ttimer;
 constructor create(aowner:Tcomponent);
 destructor destroy(aowner:Tcomponent);
...
...
...
destructor tscan.destroy;//(aowner:tcomponent);
begin
showmessage("меня убили");
end;


 
jack128 ©   (2004-09-09 00:28) [1]

redlord   (09.09.04 0:23)
destructor destroy(aowner:Tcomponent);
...
...
...
destructor tscan.destroy;//(aowner:tcomponent);


Деструктор должен быть без параметров. И не забудь override поставить..


 
redlord   (2004-09-09 00:35) [2]

ок спасибо



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

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

Наверх




Память: 0.46 MB
Время: 0.029 c
3-1093498750
Artem123
2004-08-26 09:39
2004.09.26
Как динамически добавить в ClientDataSet поле SmallInt чтобы....


4-1092402037
Shuma
2004-08-13 17:00
2004.09.26
Проблемы с DLL


1-1095072110
limon_
2004-09-13 14:41
2004.09.26
поиск в combobox


6-1090390091
Gold
2004-07-21 10:08
2004.09.26
TIdPop3 сохрание вложение в поток?


4-1092231784
Ivan0001
2004-08-11 17:43
2004.09.26
Как изменить рабочий каталог другого приложения?