?
Solved

Unload a COM library

Posted on 2003-03-10
7
Medium Priority
?
604 Views
Last Modified: 2013-12-14
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
Comment
Question by:Nightmare090197
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 1

Accepted Solution

by:
ZhenyaS earned 1000 total points
ID: 8108567
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
 

Author Comment

by:Nightmare090197
ID: 8112344
Thanks, but I have Microsoft VC6.0, and ones don't understand CoFreeUnusedLibrariesEx. :(
Have you any idea?
0
 

Author Comment

by:Nightmare090197
ID: 8112396
Thanks, but VC6.0 don't understand CoFreeUnusedLibrariesEx
:(
0
Technology Partners: 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!

 
LVL 1

Expert Comment

by:ZhenyaS
ID: 8112730
I just noticed that it is available in XP only.

Why did you accept the answer if it doesn't work for you?
0
 

Author Comment

by:Nightmare090197
ID: 8114636
Because can'y see any logial answer. Isn't it? ;)
0
 

Author Comment

by:Nightmare090197
ID: 8114640
any oser logical answer
0
 
LVL 1

Expert Comment

by:ZhenyaS
ID: 8116858
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

Industry Leaders: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Starting up a Project
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question