Are you implementing your own Dispose method? If so, basically what you do
is add a boolean variable to your class that indicates whether or not the
Dispose method has been invoked already. Take a look at the VS.NET 2003
help: IDisposable.Dispose method for some sample code and an explanation.
You can check if the object is null (Nothing in VB.NET). Alternativately,
you can use the Try... Catch exception handling and catch an exception type
of ObjectDisposedException
HTH
Neil
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.