vtk and gtk threads...

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

 



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
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux