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. Interface leak

Interface leak

Scheduled Pinned Locked Moved COM
debuggingc++comquestion
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.
  • M Offline
    M Offline
    mango_lier
    wrote on last edited by
    #1

    My first foray in COM and active scripting. When I run my app, I get the following message in the Debug windows "INTERFACE LEAK: Ref Count = 1, MaxRefCount = 3, {Allocation =6} MyFunction - IDispatch" It looks like the ATL debug trace is trying to tell me something but what is it and where should I start. Thanks

    A 1 Reply Last reply
    0
    • M mango_lier

      My first foray in COM and active scripting. When I run my app, I get the following message in the Debug windows "INTERFACE LEAK: Ref Count = 1, MaxRefCount = 3, {Allocation =6} MyFunction - IDispatch" It looks like the ATL debug trace is trying to tell me something but what is it and where should I start. Thanks

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      Your calls of AddRef() and Release() on a COM-Interface are not balanced. :)

      M 1 Reply Last reply
      0
      • A Anonymous

        Your calls of AddRef() and Release() on a COM-Interface are not balanced. :)

        M Offline
        M Offline
        mango_lier
        wrote on last edited by
        #3

        Thanks for the information, that is what I was suspecting, after going through some COM documentation. I guess the traces in the debug window are trying to tell me the count of AddRef and Release with ">" "<" count.

        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