Hi Taru, <div><br></div><div>If possible, it would be helpful if you could share some code (gist or github?)</div><div><br></div><div>For Qt timer based approach you could probably look at the following [1] </div><div><br>

</div><div>Hth</div><div>Jc</div><div><br></div><div>[1] <a href="https://github.com/commontk/CTK/blob/master/Libs/Visualization/VTK/Widgets/ctkVTKAbstractView.cpp#L66">https://github.com/commontk/CTK/blob/master/Libs/Visualization/VTK/Widgets/ctkVTKAbstractView.cpp#L66</a></div>

<div><br><br><div class="gmail_quote">On Fri, May 4, 2012 at 1:39 PM, Taru S <span dir="ltr"><<a href="mailto:twrkmail@gmail.com" target="_blank">twrkmail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5"><span>Hello All,</span><div><br></div><div>I have integrated an external device with VTK. When interacting using the external device things work fine for a few seconds but the attempt to re-render the GUI (qt based) window fail after a while. </div>


<div><br></div><div>I am using a vtk timer based approach to re-render the window in the main application thread and use Mutex locks to set and unset the variables in the device and application threads.</div><div>
<br></div><div>The issue seems to occur when the device thread attempts to read the variable that is locked for update by the application thread. The prog throws a Qt exception at this point.</div><div><br></div>
<div>Could someone please help me with this issue and suggest a workaround. I tried creating a Qt based timer as well but for some reason it is not getting invoked.</div><div><br></div><div>Your help will be greatly appreciated.</div>


<div><br></div><div>Thanks,</div><div>Tanu</div>
</div></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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>+1 919 869 8849<br><br>
</div>