[vtkusers] vtkCocoaRenderWindowInteractor - memory violation when dealloc

David Cole dlrdave at aol.com
Wed Jan 29 10:57:19 EST 2014


Try calling:

    _interactor->SetRenderWindow(NULL);

before your Delete calls.

These things need to be disconnected and deleted in the right order for 
everything to work flawlessly. Take a look at some other examples 
(hopefuly you can find one that does something similar with all three 
New and Delete involved...) to see what they do to get rid of things.

Also, you may need to disconnect the interactor from the RenderWindow 
earlier (like when the view closes) rather than waiting until dealloc 
time.


HTH,
David



More information about the vtkusers mailing list