dll file won't close

One database dll project file utilizes another dll library project file . The library dll file contains common ADO.Net methods. The dispose() method in the library dll file is commented out because the override keyword in the method gives the error:
"...'ADONetLibrary.DatabaseControlsImplementation.Dispose(bool)': no suitable
method found to override".

The problem is my application leaves the database.dll open on the
server when the application shuts down. I have to go to the server to close the
dll.

How do I close the database.dll? How should I handle the library
dispose() method. Is that the source of my problems? Should I garabge collect in my application?

Steve

[710 byte] By [Steve45] at [2007-12-16]
# 1
the dispose method is only available if you implement the IDisposable interface. You only need to implement this if you must perform extra logic upon disposing of the object. This probably has nothing to do with the actual problem.
A dll cannot be removed while the file is in use. This can happen if the application is still running, even if you think the application has exited, most commonly because of a runaway thread that is running in the background. When this happens again make sure to check your Task manager and show all processes and look through to see if the application or service is still in memory.
MarcD at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...
# 2

Marc,

The application exe only runs on the server (share) so, I can’t see the open dll on my machine. I have to go to the server to see the open dll and close it (major pain). I don’t see the application exe open along with the dll only the dll. Basically, the exe calls the ADO.Net dll and an ADO.Net Library dll. I don’t see the library dll open either and I close the dB. Tomorrow I was thinking of null’ing out the Library object that I call and also calling GC.collection in the closing_event()

The only other thread I have is a thread that tells me if the application is already running or not (getProcesses()). Since only one instance of the application is running (starting) the second thread should never be created ….but I’ll check

Any other ideas? How do I test to see if it’s closed()? The OK and the Cancel button on the form itself already has the close() method. I also can't Release compile to the server because the dll file is open. and I get an error What about something like:

if (this not closed)

this.close();

Steve

Steve45 at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...