Вниз
Скачать: 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.041 c
3-1174040531
salexn
2007-03-16 13:22
2007.06.03
Как прервать выполнение запроса в TClientDataSet


2-1178913178
Dmitry_177
2007-05-11 23:52
2007.06.03
печать


8-1159188433
Butcher
2006-09-25 16:47
2007.06.03
Прозрачность Gif а


15-1178168718
Рауф
2007-05-03 09:05
2007.06.03
Перенос БД Paradox на другую машину.


2-1179311262
DelphiLexx
2007-05-16 14:27
2007.06.03
Как отловить момент изменения значение в Footer e




   Наверх