How to remove COM dll completely from memory?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandeepkavade
    New Member
    • Mar 2007
    • 30

    How to remove COM dll completely from memory?

    hi all,
    i have a dll say abc.dll loaded in memory and i have to unload abc.dll and load another dll of same name but it may differ in version number. i tried to unregister the first dll and register the second dll programatically . but still the code refers to the first dll. I think its because the first dll is still in memory. Am i right? Then how to completely remove the that dll from memory? I also renamed the first dll after unregistering it and then registered the second one. but it doesnt work.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by sandeepkavade
    hi all,
    i have a dll say abc.dll loaded in memory and i have to unload abc.dll and load another dll of same name but it may differ in version number. i tried to unregister the first dll and register the second dll programatically . but still the code refers to the first dll. I think its because the first dll is still in memory. Am i right? Then how to completely remove the that dll from memory? I also renamed the first dll after unregistering it and then registered the second one. but it doesnt work.
    How was the dll loaded?
    LoadLibrary, GetProcAddress and FreeLibrary functions from kernel dll are your key search terms here.

    Comment

    Working...