Вниз
Скачать: 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.055 c
5-1155032569
Avgust
2006-08-08 14:22
2007.06.03
шифрование пароля


15-1178607991
Ega23
2007-05-08 11:06
2007.06.03
Подскажите софтину


15-1178547995
Карелин Артем
2007-05-07 18:26
2007.06.03
Качалка для сети MS.


15-1178456078
raqy.style
2007-05-06 16:54
2007.06.03
формирование фильтра


15-1178103104
IMHO
2007-05-02 14:51
2007.06.03
Что за мода такая?




   Наверх