<br><font size=2 face="sans-serif">On 02/02/2005 21:11:30 Simon Drouin wrote:<br>
&gt;vtk event system is not related to your main event loop in any way. If<br>
&gt;you call InvokeEvent from a thread, listeners's execute function will be<br>
&gt;called from that same thread.<br>
&gt;<br>
&gt;If you post an event to the main loop (I don't think it can be done in<br>
&gt;vtk), that event is added to the main loop's event queue. When the main<br>
&gt;thread is scheduled, it will process the event and then you will be able<br>
&gt;to call Render from the main thread.<br>
&gt;</font>
<br>
<br><font size=2 face="sans-serif">Ok that was I was confused about vtkEvents and the main loop event processing...</font>
<br>
<br><font size=2 face="sans-serif">For those interested, I solved my problem by calling the follwing in the listening thread.</font>
<br>
<br><font size=2 face="sans-serif">PosteMessage((HWND)renWin-&gt;GetGenericWindowId(),WM_PAINT,NULL,NULL);</font>
<br>
<br><font size=2 face="sans-serif">And then it refreshes correctly the window as expected.</font>
<br><font size=2 face="sans-serif">Thanks for your help</font>
<br>
<br><font size=2 face="sans-serif">JM</font>