Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "KOL";
Текущий архив: 2007.06.03;
Скачать: [xml.tar.bz2];

Вниз

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 вся ветка

Форум: "KOL";
Текущий архив: 2007.06.03;
Скачать: [xml.tar.bz2];

Наверх




Память: 0.43 MB
Время: 0.05 c
2-1179176366
Qwerter
2007-05-15 00:59
2007.06.03
Поиск по дате


2-1178876501
newbie2
2007-05-11 13:41
2007.06.03
вопрос про class function


15-1178625260
ZeroDivide
2007-05-08 15:54
2007.06.03
Георгиевская лента на автомобилях немецкого производства!


11-1161100472
Sapersky
2006-10-17 19:54
2007.06.03
OnEndEditLVItem


11-1160597543
doozer
2006-10-12 00:12
2007.06.03
RxLibrary и ICS WSocket





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский