Вниз
Скачать: 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 вся ветка

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



Память: 0.44 MB
Время: 0.03 c
15-1178889904
ArtemESC
2007-05-11 17:25
2007.06.03
Мистика... Видимо вопросы по PHP можно задавать только здесь...


3-1174234575
kaif
2007-03-18 19:16
2007.06.03
DBLookupComboBox с дополнительными кнопками


1-1175531284
Чайник
2007-04-02 20:28
2007.06.03
DLL с совместно используемой памятью


15-1178259777
Jeer
2007-05-04 10:22
2007.06.03
Пятничные чтения


15-1177673583
Kerk
2007-04-27 15:33
2007.06.03
Умер Патриарх Алексий второй




   Наверх