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

Вниз

small bug in objects.pas   Найти похожие ветки 

 
Thaddy   (2006-10-13 16:05) [0]

procedure FreeObjectInstance(ObjectInstance: Pointer);
should be declared as:
procedure FreeObjectInstance(var ObjectInstance: Pointer);

I wonder why we never spotted that before?
There can be cases where it is important that ObjectInstance is explicitly made nil. See the implementation.


 
Vladimir Kladov   (2006-10-14 11:38) [1]

Sorry, but it is not obvious for me. Though this unit is not from me, I can not see why "var" shoud be there: ObjectInstance is not assigned anywhere in FreeObjectInstance.



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

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

Наверх




Память: 0.46 MB
Время: 0.051 c
15-1178165684
H
2007-05-03 08:14
2007.06.03
.htaccess


11-1161100472
Sapersky
2006-10-17 19:54
2007.06.03
OnEndEditLVItem


2-1179078917
Gaara_of_the_Desert
2007-05-13 21:55
2007.06.03
Добавление к объектам процедур


2-1177077166
s_t_d
2007-04-20 17:52
2007.06.03
QReport в Delphi 7. Как добавить элемент в палитру?


5-1154942814
Nic
2006-08-07 13:26
2007.06.03
Научиться писать компоненты