[vtkusers] XtAppAddTimeOut problem

Florian Drescher fdrescher at gmail.com
Wed Jun 8 07:42:32 EDT 2005


Hello!

I'm trying to use a XtAppAddTimeOut with VTK.
To get the XtAppContext necessary for the timer function I use:

vtkXOpenGLRenderWindow *xoglrw =
vtkXOpenGLRenderWindow::SafeDownCast(ren->GetRenderWindow());
	
XtAppContext app_context =
XtDisplayToApplicationContext(xoglrw->GetDisplayId());

The code compiles but I get an "Error: Couldn't find per display
information" on execution and a segmentation fault after that because
of the faulty context.

Is this a general problem with VTK?
Any suggestions for another approach to a timer within VTK?

Thanks in advance

FD



More information about the vtkusers mailing list