[vtkusers] vtkCocoaRenderWindowInteractor - memory violation when dealloc

Boxer, Aaron Aaron.Boxer at uhn.ca
Wed Jan 29 08:53:39 EST 2014


Thanks, David. I am calling New on these objects.
But, I will try the smart pointers.

Aaron

-----Original Message-----
From: David Cole [mailto:dlrdave at aol.com] 
Sent: Wednesday, January 29, 2014 7:48 AM
To: Boxer, Aaron; vtkusers at vtk.org
Subject: Re: [vtkusers] vtkCocoaRenderWindowInteractor - memory violation when dealloc

Hi Aaron,

You should only Delete objects that you created with New.

Did you create all 3 of these objects with New yourself? (Or did one or more of them come from getting the default object from the render
window....?)

Also, there's no need to *ever* call Delete if you use vtkSmartPointer and vtkNew. I'd strongly recommend using vtkSmartPointer from VTK client applications.


HTH,
David C.


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