[vtkusers] Timer Event

Robert Belleman robbel at science.uva.nl
Thu Jun 13 02:08:15 EDT 2002


Jagan,

If by "asynchronous call" you mean that multiple threads access the
X server, try adding a call to XInitThreads() just after the render
window is created.

-- Rob

-- 
[] Robert Belleman         X  Section Computational Science            []
[] robbel at science.uva.nl  |X| University of Amsterdam, the Netherlands []
[] tel: (+31) 20 525 7510  X  http://www.science.uva.nl/~robbel/       []

> Hi All,
>
> In my application main I have the following code.
>
> main()
> {
>  CompositerServer cs = new CompositerServer();
>
>      cs.reader1 = new vtkTIFFReader();
>      cs.reader1.SetFileName("./Test.tif");
>
>      vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor();
>      iren.SetRenderWindow(cs.viewer.GetRenderWindow());
> 		.
> 		.
> 		.
>
>      cs.viewer.Render();
>      iren.Start();
> }
>
> When I set the cs.viewer.SetOutput() and call cs.viewer.Render() in an
> asynchronous call I get an X-Window error. Any help?
>
> thanks much
> -jagan








More information about the vtkusers mailing list