Re: Probleme With Threads.



Hello Florent,

On Fri, 4 Sep 2009, Florent Blanchon wrote:

I've tried with a pthread mechanism, by passing main class in argument,
but, when I arrive at
 
      PlotTest->m_plot.scale(PlotMM::AXIS_LEFT)->set_range( Ymin,
      Ymax);

You cannot call gtkmm functions from your worker thread. You need to do the socket stuff in the worker thread and transfer the data to the main thread, which then calls gtkmm.

Mark


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