Re: multithreaded redrawing



Hi!
  I have another problem with multithreading. I have an IO function
  that reads the stdout of a program using pipes and dumps it into
  a GtkText. This thread is started inside a Gtk+ callback function. If
  I'm right during the execution of the callback function the
  gdk_threads are already locked. Therefore my application hangs if I
  try to lock it again. My problem is that I now get an error message:
  Xlib: unexpected async reply (sequence 0x2398)!

  What am I doing wrong?

Thx in advance
  jochen

On Tue, Oct 02, 2001 at 09:45:04PM -0400, Havoc Pennington wrote:

Jochen Schaeuble <psionic psionic de> writes:

  I tried to use a pthread to add content to a GtkCTree. My problem is
  that from time to time the application suffers redraw problems (the
  content is not redrawn properly). If this happens the application
  needs to be restartet. Is it possible to do this? Is there
  anything I have to take care of? I just passed a pointer to a GtkCTree
  instance as param to the pthread function (I didn't do any thread
  initialization with glib).


Read the FAQ about using GTK multithreaded. You need to init threads
and use locking.

Havoc

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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