On 16 Mar 2007, at 16:49, <[EMAIL PROTECTED]>  
<[EMAIL PROTECTED]> wrote:
> I've installed the 1.1.x-r5734 version, but unfortunatly the  
> problem still remains.
> Can you do a test on your XP machine ?

Just to clarify - does your code segfault on the *first* press of the  
delete button, or on the *second* press of the delete button?

For me, the first time is OK, the second time is not - but that is to  
be expected, since that is exactly what you have written...

The widget gets deleted by the first click, but the pointer to it is  
not cleared, so next time round the test if the pointer is set will  
pass, and the callback will attempt to delete an already deleted  
widget. Crash.

Also, the "new box" widget will create as many widgets as you click,  
all in the same place, but you do not provide any mechanism for  
keeping a list of all the different widgets you have created - so how  
do you propose to delete any widgets other than the very last one?  
Maybe you need to be maintaining a list or something?




_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to