Alibre API Programming Introduction - Cleaning Up E-mail
Article Index
Alibre API Programming Introduction
Introduction
Internal Units
Connecting to Alibre Design
Creating a New Part
Creating a Sketch
Creating an Extrusion Feature
Saving and Closing the Part
Cleaning Up
All Pages

Cleaning Up

We late-bound a COM object, so we really should clean up a bit when we're finished with it. The call to GC will allow the garbage collector to do a little housekeeping.

' Clean Up
Call Marshal.ReleaseComObject(hook)
Call GC.GetTotalMemory(True)
 

// Clean Up
Marshal.ReleaseComObject(hook);
GC.GetTotalMemory(true);

 



Last Updated ( Monday, 28 July 2008 00:36 )