Re: Problem with memory management with builder.



Hi Krzysztof,

On Wed, 15 Jun 2011 22:49:47 +0200 you wrote:
> 
> It become really strange when I additionally put treeview in glade. When I
> trying to delete treeview I get double delete and segmentation fault, but
> still it looks like button is not freed automatically.

Deleting an already deleted object will not always be guaranteed to
cause obvious problems like a segmentation fault. Sometimes, depending
on what order objects are created in and whether you try to do anything
after the delete, you may see no apparent problem. Try adding some heap
activity between the delete window and the delete button; you may be
able to provoke the crash that way. Or run it with valgrind, which
should report the double-delete whether it would actually crash or not.

Cheers,
Rob


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]