Вниз
Скачать: 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.038 c
15-1178728994
Виталий______
2007-05-09 20:43
2007.06.03
Вопрос по Oracle Forms Builder


1-1175531284
Чайник
2007-04-02 20:28
2007.06.03
DLL с совместно используемой памятью


15-1177537024
Иксик
2007-04-26 01:37
2007.06.03
Товарищи, предлагаю встретить 9 Мая в Берлине, в Трептов-парке


11-1160836684
AndreyRus
2006-10-14 18:38
2007.06.03
Free_And_Nil


6-1164258046
NovaC
2006-11-23 08:00
2007.06.03
Аналог ClrScr & KeyPressed в Delphi




   Наверх