Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Tracking COM reference counts

Posted on 2003-10-22
9
204 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

840 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