![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
вопрос по free pascal [Free Pascal, Windows, Linux]
Vladimir Kladov © (2006-08-20 20:37:00)...поступил ко мне сегодня.
в freepascal есть проблема - если в приложении, написанном на kol,
несколько форм, главная и дочерние, то присутствует утечка памяти и
приложение завершается runtime error 216.
Более точно сказать не могу, но можете это сами увидеть, скомпилировав
приложение с поддержкой heaptrc. Приложение любое, например это:
http://bonanzas.rinet.ru/DemoModalForm.zip
Я с free pascal давно не работал, у меня сейчас нет сколько-нибудь актуальной версии (комп сдох, винт, на котором он был развернут, сдох надо качать новую версию). Если у кого есть возможность быстро разобраться, то может к обновлению бы успели поправить.
Vladimir Kladov (2006-08-24 18:36:00) [1]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).
thaddy (2006-08-21 21:16:00) [2]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.
thaddy (2006-08-21 20:53:00) [3]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 01:27:00) [4]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 trueleaks as far as I can tell that are caused by KOL.