Главная страница
    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.44 MB
Время: 0.038 c
3-1174234575
kaif
2007-03-18 19:16
2007.06.03
DBLookupComboBox с дополнительными кнопками


15-1178122069
ArtemESC
2007-05-02 20:07
2007.06.03
А как проверить, что это директория, а не файл...


2-1178973589
ФФФФ
2007-05-12 16:39
2007.06.03
Поиск текста


1-1176199521
_dmtr_
2007-04-10 14:05
2007.06.03
linux


3-1174044671
valua
2007-03-16 14:31
2007.06.03
БД и Word





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский