somDeallocate - Remarks

The somDeallocate method is intended for use to free memory allocated using its dual method, somAllocate. When building a class, the somBuildClass function is responsible for registering the procedure that will be executed when this method is invoked on the class. The default procedure regisistered by somBuildClass uses the SOMFree function, but the IDL modifier somdeallocate can be used in the SOM IDL class implementation section to indicate a different procedure. Users of this method should be sure that the dual method, somAllocate, was originally used to allocate storage. Also, if the IDL modifier somdeallocate is used to indicate a special deallocation routine, the IDL modifier somallocate should be used to indicate a dual procedure to be called when somAllocate is invoked.


[Back: somDeallocate - Parameters]
[Next: somDeallocate - Original Class]