[vtkusers] vtkCocoaRenderWindowInteractor - memory violation when dealloc

Boxer, Aaron Aaron.Boxer at uhn.ca
Wed Jan 29 19:02:03 EST 2014


Thanks, but no dice. The crash persists.

Does anyone out there have sample code with 6.2 vtk that uses vtkCocoaRenderWindowInteractor?

Thanks,
Aaron
________________________________________
From: David Cole [dlrdave at aol.com]
Sent: Wednesday, January 29, 2014 10:57 AM
To: Boxer, Aaron; vtkusers at vtk.org
Subject: Re: [vtkusers] vtkCocoaRenderWindowInteractor - memory violation when dealloc

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


This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. 
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. 
If you have received this e-mail in error, please contact the sender and delete all copies. 
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.



More information about the vtkusers mailing list