Solved

Tracking COM reference counts

Posted on 2003-10-22
9
201 Views
Last Modified: 2010-04-01
Hi Experts,

Does anyone know of a tool that tracks COM reference counts? I have a 3rd party DirectShow object that does not clean up properly as well as an (unrelated) ActiveX control that wont shutdown properly, I could do with something that can be constrained to sets of class instances.

Any ideas?

cheers

Dave
0
Comment
Question by:DavidElliman
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 5

Expert Comment

by:Daij-Djan
ID: 9601571
boundschecker
0
 
LVL 9

Expert Comment

by:_ys_
ID: 9605111
The return values from AddRef and Release normally provide an indication on the internal reference counts. Not always accurate though. But if Release was to return 0, it's a good sign that things are Ok.
0
 
LVL 5

Expert Comment

by:Daij-Djan
ID: 9605689
that is no real tracker though.
you can check the refcount at some points but not monitor it...
0
 

Author Comment

by:DavidElliman
ID: 9605735
Thanks everyone

I know about the AddRef and Release, if it was my code I would reimplement IUnknown but it's third party so I just wanted a simple utility to check.

I've installed boundschecker (which I haven't used for some years) and will try that.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 9

Expert Comment

by:_ys_
ID: 9606692
>> that is no real tracker though.
>> you can check the refcount at some points but not monitor it...
I totally agree. Just unwilling to spend money.
0
 
LVL 5

Accepted Solution

by:
Daij-Djan earned 250 total points
ID: 9606761
there is a trial of boundschecker available...
0
 

Author Comment

by:DavidElliman
ID: 9606804
I know, thanks, I'm using it now :-)
0
 
LVL 11

Expert Comment

by:bcladd
ID: 10482434
No comment has been added lately, so it's time to clean up this TA. I will
leave a recommendation in the Cleanup topic area that this question is:

Answered: Points to Daij-Djan

Please leave any comments here within the next four days.

Experts: Silence means you don't care. Grading recommendations are made in light
of the posted grading guidlines (http://www.experts-exchange.com/help.jsp#hi73).

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

-bcl (bcladd)
EE Cleanup Volunteer

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now