Wrappers, Destructors, and Deleting Objects
 
 
 

The destructor deletes the wrapper and leaves the Alias data intact. To delete the Alias data use the wrapper’s deleteObject() method which will delete the object and invalidate the wrapper. Note that although every class derived from AlObject has a deleteObject() method, not every type of Alias data can be deleted from a plug-in. for example, curve CVs are not deletable. As a result, calling deleteObject() on an AlCurveCV will simply return sFailure.