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

Re: Text View Complaining about Double Free or Corruption



On Tue, 2008-02-26 at 01:20 -0500, Mark Rodriguez wrote:
> Was wondering if anybody has any idea(s) why the code below would seem
> to work fine on GTK/X11 (at least I don't see any error messages), but
> fail on GTK/DirectFB? When the application is exited by hitting the
> "Quit" button, I receive the following error message:
> 
> *** glibc detected *** TextDemo: double free or corruption (out): 0x4035b1b0 ***
> 
> I'm trying to figure out if this is a GTK related problem (i.e., I'm
> doing something wrong with GTK) or a problem with GTK/DirectFB. Thanks
> in advance for any suggestions / help.

You are doing something wrong with GTK although it may or may not be the
cause of the problem.  The destroy handler should have a void return
type.  (You are probably confusing the return value with that for the
delete event issue by the window manager.)

Chris




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