[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

gtk_init and thread



hi

i try to use gtk for display part of app, witch is in a thread
so, gtk_init is in the thread to(coz huge app, and can only play in this 
part of code)


the problems is:  every things is fine until a quit the app, where a got a 
segfault (not even in gtk)
i removed all the gtk code to isolate problem until gtk_init was the only 
line of code
so, my empty thread with only cout is working fine, app quit without 
problem, but as soon as i put gtk_init, i have a segfault at end

i took a look at http://www.gtk.org/faq/#AEN482, 
http://developer.gnome.org/doc/API/2.0/glib/glib-Threads.html and so on, but 
nothing helped

my guess is that gtk don't unload and the app dont like it
like if i dont do gtk_widget_unrealized, i still have a window event after 
the destruction of the thread

gtk_exit don't seem to work

is anybody having a clue on how to solve this??

sincerely
julien vary

_________________________________________________________________
MSN Messenger : discutez en direct avec vos amis ! 
http://www.msn.fr/msger/default.asp




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]