Вниз
Скачать: 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.094 c
11-1160477968
vampir_infernal
2006-10-10 14:59
2007.06.03
HWND -> PControl


6-1164207462
RealGanj
2006-11-22 17:57
2007.06.03
Свой DayTimeServer


2-1178996245
likenoother
2007-05-12 22:57
2007.06.03
из Timage в Tpaintbox


4-1166975309
XeRoN
2006-12-24 18:48
2007.06.03
Hook


2-1179302239
Ol4ik
2007-05-16 11:57
2007.06.03
DBLookupListBox




   Наверх