<div class="gmail_quote">On Wed, Feb 15, 2012 at 7:22 AM, Gishara Indeewarie <span dir="ltr">&lt;<a href="mailto:gish.777@gmail.com">gish.777@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>Hi all,</div><div><br></div><div>I  have created a vtk render window and I want to change the data in the window each time user select an option from a set of radio buttons in a MFC window.</div><div>To do this I called vtkrender window each time an option is selected. </div>

<div>This is working fine, but when I tried to close the vtk window. I get a debug assertion from vtkgarbagecollector saying that object-&gt;getreferencecount == 1.</div><div><br></div><div>Below is the code I am using to render vtk window.</div>
</blockquote><div><br></div>Please simplify this demo code. I&#39;d expect that in about 10 lines you should be able to create the same situation.<br><br>David<br></div>