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. COM instances

COM instances

Scheduled Pinned Locked Moved COM
databasecomquestion
2 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.
  • C Offline
    C Offline
    Chiew Heng Wah
    wrote on last edited by
    #1

    I am trying to query if a system has applications instantiated DirectShow video rendering objects.:eek: Is there a way to query how many instances of any particular COM class is currently created on a system? (the instances may be owned by other applications).:confused: If so, is there a way to interface with these created COM objects of another application?:~ Thanking in advance for a reply.:-D

    G 1 Reply Last reply
    0
    • C Chiew Heng Wah

      I am trying to query if a system has applications instantiated DirectShow video rendering objects.:eek: Is there a way to query how many instances of any particular COM class is currently created on a system? (the instances may be owned by other applications).:confused: If so, is there a way to interface with these created COM objects of another application?:~ Thanking in advance for a reply.:-D

      G Offline
      G Offline
      Giles
      wrote on last edited by
      #2

      Not really. Over at sysinternalls, there are some tools with code, to show you how to view how processes have a loaded copy of a DLL. To get at a COM object of a DLL you need to be in the process to see them, in which case you can then hazard a guess at how many times the DLL has been locked, but then each COM object created adds a lock, so you can't be sure which. I don't think COM was designed with these kind of metrics in mind.


      "Je pense, donc je mange." - Rene Descartes 1689 - Just before his mother put his tea on the table. Shameless Plug - Distributed Database Transactions in .NET using COM+

      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