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
  1. Home
  2. General Programming
  3. COM
  4. Kill a non-responsive COM Object

Kill a non-responsive COM Object

Scheduled Pinned Locked Moved COM
mobilecomsysadminperformancehelp
3 Posts 3 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.
  • A Offline
    A Offline
    Anders Molin
    wrote on last edited by
    #1

    Is there any way to kill a COM Object which I have started. Normally I create the COM Object, and when I'm done with it I call obj->Release(); to decrease the ref. count. But what if the COM Object stops responding? Is there anyway to kill it... Something like: KillComObjectNow(obj); I know I know, it might cause resourse/memory leaks and stuff, but... The problem is that I'm writing a server-thing for which people can write plug-ins/extensions in COM, and if one of those stops responding I want to kill it... - Anders Money talks, but all mine ever says is "Goodbye!"

    R 1 Reply Last reply
    0
    • A Anders Molin

      Is there any way to kill a COM Object which I have started. Normally I create the COM Object, and when I'm done with it I call obj->Release(); to decrease the ref. count. But what if the COM Object stops responding? Is there anyway to kill it... Something like: KillComObjectNow(obj); I know I know, it might cause resourse/memory leaks and stuff, but... The problem is that I'm writing a server-thing for which people can write plug-ins/extensions in COM, and if one of those stops responding I want to kill it... - Anders Money talks, but all mine ever says is "Goodbye!"

      R Offline
      R Offline
      Rama Krishna Vavilala
      wrote on last edited by
      #2

      You can use MessageFilters, look at IMessageFilter

      S 1 Reply Last reply
      0
      • R Rama Krishna Vavilala

        You can use MessageFilters, look at IMessageFilter

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

        will not work in MTA. soptest

        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