AW: [vtkusers] Memory leak with wxVTKRenderWindow? Please help.

Charl P. Botha c.p.botha at its.tudelft.nl
Wed May 7 07:56:21 EDT 2003


On Wed, 2003-05-07 at 11:40, Marcus Stojek wrote:
> I used the DebugOn method like Charl said and all vtkObjects I am using
> are unregistered and destroyed as they should. The problem seems to be
> the Destroy() on the wxVTKRenderWindow. If I use WindowRemap() right after
> creating the widget a new window appears which is used for rendering. Then
> after destroying the widget I get all my memory back. Great.
> 
> But I don't want that new window. The vtk doc doesn't help very much.
> In wxVTKRenderWindow WindowRemap is used for reparenting, but to be honest
> I don't get it. How do I have to use WindowRemap to stay inside my frame for
> rendering? And what exactly does WindowRemap do?

> Charl mentioned that WindowRemap is one way to solve my problems. Are there
> others?

As I said, I'm working on it, but you'll have to wait a while.  Until
then, try and live with WindowRemap, there's no other (easy) way
currently to forcibly detach a vtkRenderWindow from the widget set.

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/



More information about the vtkusers mailing list