BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

stop running DLL with Borland Socket Server

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Zed Martins
Guest





PostPosted: Mon Oct 10, 2005 2:09 pm    Post subject: stop running DLL with Borland Socket Server Reply with quote




We have an application that uses ActiveX Libraries (COM+ DLLs) that can be either installed on COM+ (Component Services MMC) or registered using regsvr32 (including on Windows 95, 98, 2000, XP, etc...). We use Borland Socket Server from Delphi 6.

When using COM+, we can shutdown one single DLL to update the file without stopping the other DLLs. To do so we can stop the application on Component Services MMC or stop the DLLHOST.EXE process that is associated with the DLL we want to update.

When using the DLLs registered with regsvr32, we can't stop the whole process since all DLLs are running under the same scktsrvr.exe process. So, I'm thinking about changing the Socket Server to include some way to unload just one DLL... Can someone help me with that? Any sugestions?

I've tried to use GetModuleHandle to check if the DLL is running and if so call FreeLibrary or CoFreeLibrary to unload it. It works, I can unload it, but sometimes, when I try to load it again, I'm getting a "Server threw an exception" error when the Socket Server calls CoCreateInstance...

Please, any help will be great!!!

Z.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.