Вниз
Скачать: 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.03 c
2-1179147314
TempUser
2007-05-14 16:55
2007.06.03
И всё таки как скинуть программу в трей?


15-1178518779
db2admin
2007-05-07 10:19
2007.06.03
Модульное ПО


2-1179176488
redlord
2007-05-15 01:01
2007.06.03
ограничение скорости чтения из файла


3-1173856365
Sesh
2007-03-14 10:12
2007.06.03
DBF to Oracle


15-1178766009
Slider007
2007-05-10 07:00
2007.06.03
С днем рождения ! 9 мая




   Наверх