Hi!

I have commited the code i have written for the main menu using paragui.
But, there is a weird bug i can't find, so if someone want to have a
look, it would be great :)
It happens in the loop of the menu and/or in the callback function
(menu/main_menu.cpp - lines 71 to 80):
The callback functions of the buttons are called without any problem
(debug message displayed to the screen), but the variable corresponding
to the clicked button is overwritten, i don't know where, just after
leaving the callback function...
With gdb, i'm unable to trace/catch anything... With valgrind it crashes
when displaying the menu...
It may be a bad initialisation or a bad use of a paragui function, but
all the code is almost a copy of the dblbuffer exemple..
It seems to me, that it's caused by an overwritten stack, hard to trace
because of the threads :/

lodesi



        

        
                
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com


Répondre à