> I'm not filing this as a bug as I'm not sure it is.
> 

A segfault is normally a bug. Gambas should never segfault. :-)

> The project Richard and I work on was segfaulting when opening a submenu.
> I enclose the stacktrace from GDB and a small project that elicits it.
> As you can see from the project, the cause is generating the submenu
> structure twice, the second time from within the Menu_Show () handler.
> 
> By only generating the menus once the problem is solved.
> 
> Ian

The crash comes from the fact that the Menu Show event is raised just before 
showing the menu. And during that event, you are clearing the menu that is 
being show. Qt4 does not like that (neither GTK+).

Maybe I should prevent that with a internal flag...

Regards,

-- 
Benoît Minisini

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to