Given ANY 'KEY' string value generated by a CapeTool function, you can request for the object to be marked for deletion from memory.
If no other object within the library holds a reference to this object, the object will be deleted immediately.
If however the object marked for deletion is referenced by other objects, the object will be deleted when all other objects that refer to this marked-for-deletion object are deleted as well.
The C# example below contains all the sub-function calls leading up to this function call. As a result, the example can contain a lot of code.
The VB.NET, J#, C++.NET, Java, Excel VBA, Visual Basic 6 (via COM) and C++ examples below contain function code stubs for the calls leading up to this function call. However, the function call for this function is displayed.
You can easily reproduce the stub functions code from the
C# example.
Copyright (c) 2003-2007 CapeTools - All Rights Reserved.