Found the bug, sorry to disturb... The main menu was allocated twice (even in the clanlib version :/), and and i was modifying a variable in the bad menu. So, the good news is that we win 468ko, because the background img was allocated twice! :)
Lodesi Le jeudi 08 septembre 2005 à 00:10 +0200, Laurent Defert Simonneau a écrit : > 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 > > > _______________________________________________ > Wormux-dev mailing list > [email protected] > https://mail.gna.org/listinfo/wormux-dev ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
