You likely have a memory leak. It's harder to do in .NET, but it's still possible.
What you want to write is "sandwich" code, where you allocate an object, use it (or pass it somewhere else to be used), and then free it by setting it to Nothing. The idea is not to have orphaned references.
You shouldn't do this (set stuff to Nothing) for value types (int, enumerations, DateTime, etc.) For most reference types (classes, strings, interfaces) you don't need to do this, but you can. You absolutely should do this when the object contains an unmanaged resource, like a DB connection, file, socket, etc.
Chip H.
____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first