Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2007.06.03;
Скачать: 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 вся ветка

Текущий архив: 2007.06.03;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.07 c
3-1173879416
Vladisllav
2007-03-14 16:36
2007.06.03
Связь двух таблиц Ib в Delphi


8-1157826089
Voper
2006-09-09 22:21
2007.06.03
Сохранение картинок в 1 файл


2-1179381374
MrNew
2007-05-17 09:56
2007.06.03
Всем ЗДОРОВЕНЬКО!


1-1175846980
Bless
2007-04-06 12:09
2007.06.03
зачем нужно TInterfacedObject(Result).FRefCount := 1 ?


2-1179162994
Просто_новичок
2007-05-14 21:16
2007.06.03
Запись в фал значений из динамического массива