Hi VTK users, <br><br>Inside a function I do this: <br>vtkRendererCollection* rendererCollection = renderWin->GetRenderers(); <br><br>Where I am basically getting the renderers associated with a rendering window. Further down in the code I extract the renderer from the collection and delete any existing actors in the renderer and replace it with a new actor.
<br><br>When exiting the function, I start freeing up the memory by invoking on Delete( ) on the renderer, actor, etc. But here is where it gets all wierd - when I delete the rendererCollection object, I can no longer interact with my actor. Does anyone know why?
<br><br>Thanks<br>Rashed Karim. <br>