Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. COM
  4. how to remove com object from memory

how to remove com object from memory

Scheduled Pinned Locked Moved COM
c++comperformancetutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Stober
    wrote on last edited by
    #1

    I use CoCreateInstance(...) to create an instance of a COM/ATL DLL that I wrote, then use obj->Release() when done with it. During development I discover the only way to remove it from memory is to reboot! Is there a better way? I cannot replace the dll when its in use. thanks -- modified at 14:08 Wednesday 29th March, 2006

    M 1 Reply Last reply
    0
    • S Stober

      I use CoCreateInstance(...) to create an instance of a COM/ATL DLL that I wrote, then use obj->Release() when done with it. During development I discover the only way to remove it from memory is to reboot! Is there a better way? I cannot replace the dll when its in use. thanks -- modified at 14:08 Wednesday 29th March, 2006

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Call CoFreeUnusedLibraries() in your app to unload any DLL servers that have a refcount of 0. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

      S 1 Reply Last reply
      0
      • M Michael Dunn

        Call CoFreeUnusedLibraries() in your app to unload any DLL servers that have a refcount of 0. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

        S Offline
        S Offline
        Stober
        wrote on last edited by
        #3

        Thanks -- just what I was looking for ;)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups