[vtkusers] vtk and gtk threads...
z.pekar at gmail.com
z.pekar at gmail.com
Tue Mar 11 18:08:52 EDT 2008
Hi,
I have a gtk/vtk program that uses vtkgtk package - vtkgtk.sf.net,
that itself uses gtkglext...
So I use an additional thread to make some computation and apply
changes on renderer,
and every second I render the image to the screen like this:
// render the image
gdk_threads_enter(); // Protect from gtk main loop
getInteractor()->Render();
gdk_flush();
gdk_threads_leave();
under Linux it works just perfect, but my fellows with windows say -
they got massive errors output as long as getInteractor()->Render();
is inside secondary thread, but if they move it to the main thread
everything works fine. The problem is - we need that it stays in the
secondary thread. Do you have an idea what could be the problem/workaround?
( I also put gdk_threads_enter();/leave(); around gtk_main() )
thank you in advance
Zeev Pekar
More information about the vtkusers
mailing list