Type: info
         Title: osl::DebugBase to detect leaking objects in non-pro builds
     Posted by: [EMAIL PROTECTED]
      Affected: ...,
Effective from: cws presfixes10


*Summary*
--------
header file: osl/diagnose.hxx

[namespace osl]
+ template <typename InheritingClassT> class DebugBase;


*Description*
-------------
/** Helper class which indicates leaking object(s) of a particular
class in
    non-pro builds; use e.g.
    
    <pre>
    class MyClass : protected osl::DebugBase<MyClass> {...};
    </pre>
    
    Using the environment variable
    
    OSL_DEBUGBASE_STORE_ADDRESSES=MyClass;YourClass;...
    
    you can specify a ';'-separated list of strings matching to class
names
    (or "all" for all classes), for which DebugBase stores addresses
to created
    objects instead of just counting them.  This enables you to
iterate over
    leaking objects in your debugger.
    
    @tpl InheritingClassT binds the template instance to that class
    @internal Use at own risk.
              For now this is just public (yet unpublished) API and
may change
              in the future!
*/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to