
Releasing all references of componant
Hmmm... one way is to increment and decrement a class-specific global
variable on _initialise and _terminate events; this will give you an ongoing
indication that it's all unloading correctly, otherwise as new libraries and
sections are added, you can find that extra references can keep bits alive.
If it's a v. large application, I have had a debug window that can appear so
I can actually see object counts dropping. I'm fairly sure that some of the
commercial profilers do something similar via a VB add-in that will
effectively do the same thing.
Paul Bradbury.
Quote:
> How can you know for sure when you have released all references to your
> componant and that your componant has released all of its references. Is
> there an easy way to check to make sure everything in your componant in
> being unloaded properly or do you have to go through your code bit by bit
> and make a clear assumption that way...