Re: Event loop hangup when using TimeoutSource and IdleSource



On Thu, 24 Sep 2009 16:43:21 -0400
Jim Hodapp <james hodapp gmail com> wrote:
> Chris,
> 
>      I removed the inheritance statement from my Emsac class  
> definition and things seemed more stable. Things remained stable
> until I moved the mouse over some widgets in the main window that
> will accept focus and very shortly after that the application
> segfaulted. The backtrace is as follows:
> ...
>
> The GUI thread talks to the library thread directly through API
> calls. I link the library into the GUI application and make direct
> calls.
> 

Are you sure that these "direct calls" are thread safe?  Does the
library call any GTK+ functions through its API and if so in what
thread?  Your report about your mouse is symptomatic of what happens if
you try to address GTK+ from two different threads.

Chris





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