Re: [gnomemm] Threads and Gtk::Main iteration
- From: Paul Davis <pbd op net>
- To: Davide Rossetti <davide rossetti roma1 infn it>
- Cc: GNOMEmm mailing list <gnomemm-list gnome org>
- Subject: Re: [gnomemm] Threads and Gtk::Main iteration
- Date: Tue, 03 Sep 2002 12:44:39 -0400
>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]