<div dir="ltr"><div><div> <br></div>I write follow code in a thread.<br><br>void updateHaptics(void)<br>{ <br> <br>while(simulationRunning )<br></div><div> { <br> double bounds[6];<br></div><div> toolactor->Getbounds(bounds);<br>
</div><div><br> }<br>simulationRunning=false;<br> <br> }<br> <br> // exit haptics thread<br> simulationFinished = true;<br><br>}<br></div><div>beacuse of use from Getbounds function ,after running ,this is follow error:<br>
</div><div>Error: in VTK\Filtering\vtkExcutive in line 783<br><br></div><div><div><div><div><div><br>vtkErrorMacro(<< method << " invoked during another request. "<br> "Returning failure to algorithm "<br>
<< this->Algorithm->GetClassName() << "("<br> << this->Algorithm << ").");<br><br></div><div>how to fix this problem?<br></div></div>
</div></div></div></div>