Re: logging AddRef() and Release() to trace file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



<swartzbill2000@xxxxxxxxx> wrote in message
news:1130283433.818188.262730@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I am looking for the implementations of AddRef() and Release(). I want
> to override them to write info to a trace file, and then call the base
> implementations, whereever they are. What are the base class and the
> corresponding functions that I need to override?

Aren't built-in debugging facilities sufficient for your purposes? See
_ATL_DEBUG_INTERFACES and ATL_DEBUG_QI. Combine them with DebugView
(http://www.sysinternals.com/Utilities/DebugView.html) for comprehensive
logging.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: logging AddRef() and Release() to trace file
    ... I know of the built-in debugging facilities. ... and Releasethat I can override? ... What are the base class and the ... > Aren't built-in debugging facilities sufficient for your purposes? ...
    (microsoft.public.vc.atl)
  • logging AddRef() and Release() to trace file
    ... I am looking for the implementations of AddRefand Release. ... to override them to write info to a trace file, ... What are the base class and the ...
    (microsoft.public.vc.atl)
  • Re: What can I store in LPARAM
    ... I'm not saying you're wrong, but with my call back up to the base class, ... may choose to override it completely, or by adding code before or after ... comments below regarding leaf. ... This means that a subclass can't change the method body behind ...
    (microsoft.public.vc.mfc)
  • Re: How many bytes per Italian character?
    ... override the InitState() function so it needs to be pure virtual. ... derived classes call up to them anyway; ... both the base class and derived class. ...
    (microsoft.public.vc.mfc)
  • Re: Overriding "OnXXX" versus adding event handler
    ... to touch base functionality and not to deal with component ... Either for base class or for my class. ... For example, you can either write a new OnPaint override, or you can ... In other words, override when you can, add an event handler if you can't. ...
    (microsoft.public.dotnet.framework)