«« Next » « Previous
«« Next » « Previous

Link Details

We're glad you're here, but we'd be thrilled if you voted! Login and vote now.
Link 84160 thumbnail

By rick
via voneinem-windbg.blogspot.com
Submitted: May 31 2008 / 08:13

One of the hardest things is debugging a reference count leak. COM objects lifetime depends on the reference count (read here for more...). So each client of a COM object must call AddRef on the IUnknown interface when going to use it and it must call Release when done. If any client (and there might be many many of a single one) violates this rule you get into severe trouble.
  • 3
  • 0
  • 67
  • 4

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (3)



Voters Against This Link (0)