Вниз
Скачать: 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.969 c
15-1178787201
Галинка
2007-05-10 12:53
2007.06.03
Барабанная дроьб и прочее...


11-1160477968
vampir_infernal
2006-10-10 14:59
2007.06.03
HWND -> PControl


2-1178970944
Strate
2007-05-12 15:55
2007.06.03
Exeption внутри Thread


15-1178828840
РТР
2007-05-11 00:27
2007.06.03
Посоветуйте пожалуйста socs5 - прокси сервер под винду


15-1178564140
iZEN
2007-05-07 22:55
2007.06.03
Ой чо деется, Microsoft торгует Линуксом!




   Наверх