Re: strange segfault in threading



On Wed, 2007-03-14 at 11:49 +0100, Luka Napotnik wrote:
while (gtk_events_pending())
    gtk_main_iteration();
gdk_threads_leave();

I don't think it's correct to try to run the main loop (which is what
the gtk_events_pending/gtk_main_iteration does) from a second thread.  I
can't promise this is the problem, but that looks extremely shady to me.

- Michael

-- 
Michael Ekstrand
Research Assistant, Scalable Computing Laboratory
Goanna, compute cluster and InfiniBand network monitor tool:
        http://www.scl.ameslab.gov/Projects/Monitor/




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