![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cPtrTrace.h>
Public Member Functions | |
cPtrTrace (const TYPEINFO_t &TypeInfo) noexcept | |
cPtrTrace (const cPtrTrace &ref) noexcept | |
void | TraceOpen (void *p) |
void | TraceClose (void *p) |
Public Attributes | |
const char * | m_pszType |
from __typeof(TYPEINFO_t).name() More... | |
cDebugSourceLine | m_Src |
where (in code) was m_p set? More... | |
Static Public Attributes | |
static bool | sm_bActive = false |
Turn on/off tracing via cPtrTraceMgr. be fast. More... | |
Friends | |
class | cPtrTraceTests |
Trace each use of the a pointer in cPtrFacade/cIUnkPtr for debug purposes. If the lock count fails to go to 0 we know who the leaker was. or if the object is deleted but still has refs we can detect that as well. Add myself to the cPtrTraceMgr table if the m_p pointer is set.
|
inlinenoexcept |
|
inlinenoexcept |
void Gray::cPtrTrace::TraceClose | ( | void * | p | ) |
void Gray::cPtrTrace::TraceOpen | ( | void * | p | ) |
|
friend |
const char* Gray::cPtrTrace::m_pszType |
from __typeof(TYPEINFO_t).name()
cDebugSourceLine Gray::cPtrTrace::m_Src |
where (in code) was m_p set?
|
static |
Turn on/off tracing via cPtrTraceMgr. be fast.