[lazarus] AV on messagedialogs?

Michal Bukovjan bukovjan at mbox.dkm.cz
Wed Sep 4 02:30:45 EDT 2002


Mattias Gaertner wrote:

>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.
>  
>
That would be me. How did you find out? My backtrace ended on gtkclickcb 
and I could not make anything useful out of it, I'll check that today.

>
>  
>
>>>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.
>  
>
I'll try that unit.

Thanks,

Michal







More information about the Lazarus mailing list