Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2007.04.22;
Скачать: CL | DM;

Вниз

вопрос по free pascal   Найти похожие ветки 

 
Vladimir Kladov   (2006-08-20 20:37) [0]

...поступил ко мне сегодня.

в freepascal есть проблема - если в приложении, написанном на kol,
несколько форм, главная и дочерние, то присутствует утечка памяти и
приложение завершается runtime error 216.
Более точно сказать не могу, но можете это сами увидеть, скомпилировав
приложение с поддержкой heaptrc. Приложение любое, например это:
http://bonanzas.rinet.ru/DemoModalForm.zip


Я с free pascal давно не работал, у меня сейчас нет сколько-нибудь актуальной версии (комп сдох, винт, на котором он был развернут, сдох надо качать новую версию). Если у кого есть возможность быстро разобраться, то может к обновлению бы успели поправить.


 
thaddy   (2006-08-21 01:27) [1]

I have looked into this.
(Beacuse my examples sometimes failed)

This is a problem in Freepascal, but not KOL:

If you pack it with UPX the problems go away...
It seems to be a memorymanager problem.
There are NO true leaks as far as I can tell that are caused by KOL.


 
thaddy   (2006-08-21 20:53) [2]

Vladimir, I have checked the example with the latest stable release of FPC 2.0.2
De example compiles and works flawless. I suggest the person that has problems to upgrade to Freepascal 2.0.2 and KOL 2.37.
Again, there are NO problems :) with this example at all!

Unless it is that you may have to add {$APPTYPE GUI} to avoid console popping up :)


 
thaddy   (2006-08-21 21:16) [3]

Correction: heaptrc does not work with KOL, but KOL really doesn"t seem to leak if I check with other tools. I will investigate further.


 
Vladimir Kladov   (2006-08-24 18:36) [4]

OK, thanks to you Thaddy. I can not check it now. (I have only old free pascal and very slow dial-up now - 34.6Kbps).



Страницы: 1 вся ветка

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

Наверх




Память: 0.44 MB
Время: 0.033 c
2-1175521812
Stenfit
2007-04-02 17:50
2007.04.22
Помогите разобраться з запросом...


3-1170068890
AlexXXX
2007-01-29 14:08
2007.04.22
сохранение в БД символов "£" и других....


2-1175473970
Wood
2007-04-02 04:32
2007.04.22
Поиск и вставка.


2-1175423853
>>DEATH<<
2007-04-01 14:37
2007.04.22
array of tbitmap


15-1174986829
Kolan
2007-03-27 13:13
2007.04.22
TeeChart, стоит купить?





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