Thanks Jothy. Yes I am calling Render on vtkRender. Does it have something to do with vtkGarbageCollector?<div> I am calling vtkObject-&gt;Delete() from the MFC dialog where the options are selected. But it throws this assertion.</div>
<div>Thanks.</div><div><br><div class="gmail_quote">On Fri, Feb 24, 2012 at 6:18 PM, Jothybasu Selvaraj <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Are you calling Render() on vtkRenderer or vtkRenderWindow. <br><br>Quoting what others said: <br><br>You are not supposed to call Render on vtkRenderer. You shoud use RenderWindow-&gt;Render().<br><br>Jothy<br>

<br><div class="gmail_quote"><div><div class="h5">On Fri, Feb 24, 2012 at 12:37 PM, Gishara Indeewarie <span dir="ltr">&lt;<a href="mailto:gish.777@gmail.com" target="_blank">gish.777@gmail.com</a>&gt;</span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi all,
<div><br></div><div>I have a vtk window where I change the data of it whenever user selects an option (from a set of radio buttons in another MFC dialog). </div><div>I use render-&gt;render() each time when the data is changing.</div>


<div>My problem is that when I try to delete the Intearctor, I get a debug assertion as &quot; Expression: e-&gt;Component != 0&quot;, in vtkGarbageCollectror.cxx , line 781.</div><div>Is there a way to delete all the vtk objects in vetk inteteractor at once?</div>


<div>I am deleting all the vtk objects one by one here, but finally it gives me this error.</div><div>Please help me.</div><div>Thanks.</div>
<br></div></div>_______________________________________________<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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div></div><font color="#666666">Gish</font><br>
</div>