Click here to Skip to main content
15,898,373 members
Home / Discussions / COM
   

COM

 
GeneralFound it! Pin
Martin Andersen14-Jan-05 7:23
Martin Andersen14-Jan-05 7:23 
GeneralCOM : +/- ATL Pin
Malcolm Smart14-Jan-05 1:11
Malcolm Smart14-Jan-05 1:11 
GeneralRe: COM : +/- ATL Pin
Martin Koorts14-Jan-05 3:15
Martin Koorts14-Jan-05 3:15 
GeneralRe: COM : +/- ATL Pin
Jörgen Sigvardsson16-Jan-05 12:08
Jörgen Sigvardsson16-Jan-05 12:08 
Generalhelp on openwith dialog Pin
deepakskumar12-Jan-05 21:21
deepakskumar12-Jan-05 21:21 
QuestionHow do you free a COM library in Visual Basic? Pin
zumichu11-Jan-05 12:13
zumichu11-Jan-05 12:13 
AnswerRe: How do you free a COM library in Visual Basic? Pin
Martin Koorts12-Jan-05 0:40
Martin Koorts12-Jan-05 0:40 
AnswerRe: How do you free a COM library in Visual Basic? Pin
Anonymous13-Jan-05 1:36
Anonymous13-Jan-05 1:36 
You realize that CoFreeAllLibraries unloads _all_ dlls loaded by the COM runtime whether they are in use or not?

Quote from MSDN:
Frees all the DLLs that have been loaded with the CoLoadLibrary function (called internally by CoGetClassObject), regardless of whether they are currently in use.

This is a rather drastic thing to do and it can certainly leads to access violations and other undefined behavior.

Perhaps you intended CoFreeUnusedLibraries? I'm no VB expert but this should do the trick:

Private Declare Sub CoFreeUnusedLibraries Lib "ole32" ()

Now you should be able to call CoFreeUnusedLibraries from VB
GeneralRe: How do you free a COM library in Visual Basic? Pin
geo_m16-Jan-05 20:42
geo_m16-Jan-05 20:42 
GeneralRe: How do you free a COM library in Visual Basic? Pin
zumichu27-Jan-05 8:30
zumichu27-Jan-05 8:30 
Generalasfds Pin
Anonymous8-Jan-05 5:39
Anonymous8-Jan-05 5:39 
GeneralRe: asfds Pin
Jörgen Sigvardsson8-Jan-05 6:15
Jörgen Sigvardsson8-Jan-05 6:15 
GeneralRe: asfds Pin
User 21559710-Jan-05 20:55
User 21559710-Jan-05 20:55 
GeneralRe: asfds Pin
Jörgen Sigvardsson10-Jan-05 20:59
Jörgen Sigvardsson10-Jan-05 20:59 
Generalquestions on COM Pin
cyberJen7-Jan-05 13:29
cyberJen7-Jan-05 13:29 
GeneralRe: questions on COM Pin
Jörgen Sigvardsson8-Jan-05 0:13
Jörgen Sigvardsson8-Jan-05 0:13 
GeneralATL / COM question Pin
__makaveli__7-Jan-05 0:24
__makaveli__7-Jan-05 0:24 
GeneralRe: ATL / COM question Pin
Lim Bio Liong7-Jan-05 6:07
Lim Bio Liong7-Jan-05 6:07 
GeneralRe: ATL / COM question Pin
__makaveli__9-Jan-05 22:05
__makaveli__9-Jan-05 22:05 
GeneralRe: ATL / COM question Pin
Martin Koorts9-Jan-05 22:44
Martin Koorts9-Jan-05 22:44 
GeneralRe: ATL / COM question Pin
__makaveli__9-Jan-05 23:32
__makaveli__9-Jan-05 23:32 
GeneralRe: ATL / COM question Pin
Martin Koorts10-Jan-05 1:03
Martin Koorts10-Jan-05 1:03 
GeneralRe: ATL / COM question Pin
__makaveli__10-Jan-05 1:09
__makaveli__10-Jan-05 1:09 
GeneralRe: ATL / COM question Pin
Martin Koorts10-Jan-05 3:33
Martin Koorts10-Jan-05 3:33 
GeneralRe: ATL / COM question Pin
__makaveli__10-Jan-05 4:54
__makaveli__10-Jan-05 4:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.