Re: [gnomemm] Threads and Gtk::Main iteration



>Jeremy Dinsel wrote:
>
>>In writing a routine that uses pthreads to copy a large
>>file off the network and update a progress meter for the
>>download, I've found that I need to insert an gtk main loop iteration
>>request. However, half the time the code works and half the time it
>>fails. Anyone have any insite into why this occurs during a Gtk::Main*
>>M->iteration(TRUE) call?
>>
>>Xlib: unexpected async reply (sequence 0x725)!
>>Gdk-ERROR **: BadShmSeg (invalid shared segment parameter)
>>  serial 1841 error_code 192 request_code 148 minor_code 2
>>Xlib: unexpected async reply (sequence 0x732)!
>>
>>  
>>
>I'm not sure as of your version, but maybe your gtk+-<some version> is 
>not thread-safe, so gtkmm is not as long...

no version of gtk+ is thread-safe without explicit locking by the
programmer. please see the GTK+ FAQ at www.gtk.org

--p




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