[lazarus] AV on messagedialogs?
nc-gaertnma at netcologne.de
Tue Sep 3 21:11:20 EDT 2002
On Wed, 04 Sep 2002 01:12:25 +0200
Florian Klaempfl <Florian.Klaempfl at gmx.de> wrote:
> At 00:01 04.09.2002 +0200, you wrote:
> >I found that it perhaps crashes during the dialog show, but was unable to
> >find more yet, as gdb was not of much help. This looks like dangling
> >pointers or memory overwriting to me.
gdb helped me to find out:
The crash comes with the gtk_accel_group_add statements. For example for TBitBtn. Probably the accelerators were not released, when the widgets were destroyed or the accelerator changes. Probably the people who implemented the accelerator stuff have an idea where to start.
> >This could be related to the other errors reported here.
> >Does anyone know of a decent memory debugger like valgrind for Free Pascal?
> Did you try the heaptrc unit?
Yeah, very useful unit. Although I wish, some of the internal variables/procs would be readable via functions in the interface. Like getmem_cnt.
More information about the Lazarus