You probably need to wait until a garbage collection cycle runs.
Or, your class could implement IDisposable. The users of your class would then call .Dispose, which would do the same thing.
Chip H.
If you want to get the best response to a question, please check out FAQ222-2244 first