I have a Visual Basic application with a singleton class in it. The singleton class is designed so that there is only one instance of it and it is automatically constructed. All properties and methods are shared (static) and the constructor is private.
My question is...how does it get destroyed when it is no longer being used? I would presume that it gets destroyed somehow when the application quits, but that doesn't seem to be happening. There are no explicit references to it since it is constructed automatically on demand.
Anyone know how it gets destructed? Do I have to do something when the application quits to force it to finalize itself?