Vlad, You should make a break in searching for the reason of the segmentation fault and polish your work a little bit before GSoC ends. There are still some functions "not implemented". Maybe some of them are trivial.
In qt_close() you write privars->win->~QTkMainWindow();. That's rather unusual. Why not delete privars->win? If you want to call only a method you should write one for this case. As a conclusion to your GSoC project you should write down what was achieved and what's still open ("not implemented" functions, frame buffer, ...) Regards, Daniel PS: An idea for a fix of the segmentation fault bug: This could be caused by mixing the single- and multithread mode of libX11. I.e. the main window will be opened from Tk in singlethread mode. The Qt switches to multithread and closing the main window will lead to a crash of the mutex handling then. Using ogl means to stay in singlethread mode without real mutexes. You could try to call XInitThreads() before allocating any X11 resource. 2013/9/18 Vlad Bogolin <vladbogo...@gmail.com>: > Hi, > > First of all thanks for the hints. >> >> >> > Next you could put break points where the resource is allocated >> > (NewDatabase) and destroyed (XrmDestroyDatabase). In case of the Qt >> > display manager the database resource will be destroyed without >> > creating it before. That's probable not optimal. > > > I have added breakpoints to XrmGetFileDatabase, XrmGetStringDatabase, > XrmDestroyDatabase and I found out that XrmGetFileDatabase and > XrmGetStringDatabase are called when mged starts before selecting the new > dm. When the dm is selected there are no occurrences of any of these > function (this happens for all the dm's not just the Qt one) and then when > closing mged XrmDestroyDatabase is called and when using Qt it gets a > segfault so the resource is created then destroyed somewhere else and then > the segfault occurs. > > Cheers, > Vlad ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel