Solved

Tracking COM reference counts

Posted on 2003-10-22
9
202 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

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
 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
multi threaded debug dll option in visual studio 2 106
basic hardware to learn oop advanced design patterns 3 95
Problem with SqlConnection 4 168
max float value 3 39
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
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…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

813 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

17 Experts available now in Live!

Get 1:1 Help Now