• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 615
  • Last Modified:

Unload a COM library

Application creates COM object (dll in clients context), and in some moment it needs install new version of COM object. App delete one, unregister, calls CoFreeUnusedLibraries(). CoFreeUnusedLibraries calls DllCanUnloadNow and ones return S_OK, but dll doesn't unload until calls CoUninitialize(). But app uses other COM objects and can't call CoUninitialize(). How to free com dll?
0
Nightmare090197
Asked:
Nightmare090197
  • 4
  • 3
1 Solution
 
ZhenyaSCommented:
Hi. You can get more control with CoFreeUnusedLibrariesEx function. Also in Remarks section you can find detailed explanation of how CoFreeUnusedLibraries works.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/com/htm/cmf_a2c_19yw.asp
0
 
Nightmare090197Author Commented:
Thanks, but I have Microsoft VC6.0, and ones don't understand CoFreeUnusedLibrariesEx. :(
Have you any idea?
0
 
Nightmare090197Author Commented:
Thanks, but VC6.0 don't understand CoFreeUnusedLibrariesEx
:(
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
ZhenyaSCommented:
I just noticed that it is available in XP only.

Why did you accept the answer if it doesn't work for you?
0
 
Nightmare090197Author Commented:
Because can'y see any logial answer. Isn't it? ;)
0
 
Nightmare090197Author Commented:
any oser logical answer
0
 
ZhenyaSCommented:
Hi.
1. What operating system do you compile it on?
2. I can't provide a solution right now. But maybe somebody can. I can't take points if I didn't help. So can I return your points please?
Zhenya
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now