Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upgrade DLL

Status
Not open for further replies.

howardyc

Programmer
Joined
Dec 3, 2002
Messages
2
Location
US
I have a problem with COM Object registered in NT 2000 Advance Server with IIS Server.

The problem is when I come to a time to upgrade my DLL with a newer version, I can not overwrite previous DLL unless I reboot server (it gives me Sharing Violation error). I know for sure that I am the only one who use this COM Object.

What I'd like to do is to replace the older version DLL with newer one without reboot my server.

Did I do something wrong in programming my COM Object? Or is it the nature of using COM Objects, in a sense, you have to reboot the computer in order to drop the older COM Object from memory than you can overwrite with a newer one.

Please help!!

howardyc
 
a few things could be causing this
1) the IIS application that is using the com object(s) in the DLL stil has a hold of it.
2) Component Services (if it is installed to component services) still has it locked because it retains objects in memory for 3 minutes by default.

NT won't let you overwrite it because some process has a hold on it still. Rebooting just force all processes to shut down thus releasing you dll.
 
Thaks!! SemperFiDownInda.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top