Вниз
Скачать: 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.028 c
8-1158909536
ZSergey
2006-09-22 11:18
2007.06.03
Как победить мерцание JPG при перемещении


15-1178144706
Real
2007-05-03 02:25
2007.06.03
Хостинг в Украине


2-1179146712
sqllamer
2007-05-14 16:45
2007.06.03
данные из stringgrid в БД mysql


3-1173862302
DSKalugin
2007-03-14 11:51
2007.06.03
как в Delphi использовать VBA-функцию Access?


1-1176196280
Jakudza
2007-04-10 13:11
2007.06.03
Проблема при закрытии формы MDI из DLL




   Наверх