>
>
> > > *** glibc detected *** double free or corruption (out):=20
> > 0xbffff080 ***
> > > Aborted
> > >
> > > This is the error when I do the window callback...
> > > It is occurring since I have broken down my code into files=20
> > and redeclared the callbacks as extern "C" void function(){}=20
> > in a different file.
> >=20
> > That might not be due to that. But the callback didn't seem=20
> > to have any errors.
>
>
> You have not said what version of fltk you are using, nor what platform
> you are running on. Both these things might be helpful.
>
> However, at a guess, my first reaction is there is something wrong in
> your code - you are probably freeing (or deleting) something that you
> shouldn't, which is then being free'd again by fltk when it terminates.
>
> The fact that you only see this when you shutdown is almost certainly
> just a consequence of the fact that occurs when the program terminates -
> so probably your window callback is OK, and this is a side-effect of an
> error elsewhere in your program that is not exposed until you exit.
>
>
>
>
>
> SELEX Sensors and Airborne Systems Limited
> Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex=
> SS14 3EL
> A company registered in England & Wales. Company no. 02426132
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
>
True...
I was destroying the mainwindow in its callback...It was called when it exited.
so double freeing...
Thanks a lot...
I am using fltk-1.1.7 and Suse 9
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk