[lazarus] Just another bug
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Nov 5 07:08:01 EST 2002
On Tue, 05 Nov 2002 14:33:52 +0300
"Vasily I. Volchenko" <Vasily.Volchenko at mstu.edu.ru> wrote:
> > > Sounds like the old streaming bug in the fcl. When it happens next
> > > time, plz send the lfm and lrs file of the form with the error.
> > > And also the gdb backtrace.
> >
> > Ok, I'll send this tomorrow.
>
> Here they are. Source code and dumps.
I compiled the sources and everything works 'normal' (no access
violation).
The gdb backtrace shows that the RTTI is destroyed. That's bad. It can
mean that the heap is destroyed.
First you should make sure that your code works clean.
- Your programs tries to create an ini file in /usr/share/. This
directory is not user writable.
- You have some try..except without any exception code. Very dangerous.
Never do that. Plz try to delete them or add at least a writeln. Make
sure that these try..except only catch exceptions, that you can handle.
- You have a lot of mem leaks. For example: Starting the program and
closing without doing anything, creates more than 900 unreleased DCs.
Plz use the heaptrc or the memcheck unit and fix them.
Mattias
More information about the Lazarus
mailing list