iNTERFACEWARE Products Manual > Installing and Using Chameleon > Language API Documentation > C# .NET Support > Garbage Collection Issues |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
There are some points to be considered when looking at garbage collection in C# with Chameleon objects. It is not guaranteed that the Runtime will invoke the Finalize() method of any given C# object. This represents something of a design issue for Chameleon's C# classes. We overcame it by using the following approach. The Table class and the ChameleonDateTime class implement the IDisposable interface. Therefore, Dispose() method can be explicitly called so that the proper cleanup is insured. We designed the structure of the classes so the Dispose() method is normally invoked automatically without you needing to think about it. Except for some special cases which are described next, this is not an issue you need to worry about. The Dispose() method can be called multiple times without any problems. However, once disposed, other methods on the object should not be called. |