I will not claim to be cleverer, but I think I can answer the question:<div><br></div><div>Your mistake is calling vtkObjects from multiple threads without synchonization objects. In general, vtkObjects are only safely accessible by one thread at a time. Multi-thread access means you will have to use some sort of mutexes or locks to guarantee that only one thread at a time will call vtkObject methods. Furthermore, you should only attempt to call Render from the main GUI thread of your application.</div>
<div><br></div><div><br></div><div>Hope this helps,</div><div>David</div><div><br><br><div class="gmail_quote">On Fri, May 15, 2009 at 9:25 AM, Giancarlo Amati <span dir="ltr"><<a href="mailto:ilferraresebono@hotmail.it">ilferraresebono@hotmail.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
Hello vtkUSERS!!! This is an ash question for only the cleverer!! :D<br><br>I have a thread which modifies some data already in the vtkRenderWindow., now, the problem I have is when I want to refresh the window.<br>I though calling something like renderWindow->Render() or renderer->render(), but I get some error messages related to "Resource already in use" and "wglMakeCurrent()" function error.<br>
<br>Where is my mistake and any idea about how to overcome it?<br><br>Kind regards.<br><br>GC.<br><br><hr>Scrivi, parla e gioca con i tuoi amici! <a href="http://messenger.it/gioca.aspx" target="_blank">Scarica Messenger 2009!</a></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>