Beispiel #1
0
void PrintAllMem( void )
/**********************/
{
    if( _trmem_prt_list( TrHdl ) == 0 ) {
        _trmem_prt_usage( TrHdl );
    }
}
Beispiel #2
0
void RcPrintList( void )
/**********************/
{
    if (RcMemHandle != NULL) {
        _trmem_prt_list( RcMemHandle );
    }
}
Beispiel #3
0
void MClose( void )
/*****************/
{
#ifdef TRMEM
    _trmem_prt_list( TRMemHandle );
    _trmem_close( TRMemHandle );
#endif
}
Beispiel #4
0
unsigned WRAPI WRMemPrtList( void )
{
#ifdef TRMEM
    return( _trmem_prt_list( TRMemHandle ) );
#else
    return( 0 );
#endif
}
Beispiel #5
0
void FiniMem( void )
{
#ifdef TRMEM
    _trmem_prt_list( trmemHandle );
    _trmem_close( trmemHandle );
    if( trmemOutput != NULL ) {
        fclose( trmemOutput );
    }
#endif
}
Beispiel #6
0
void MemFini( void )
{
#ifdef TRMEM
    if( memHandle != NULL ) {
        _trmem_prt_list( memHandle );
        _trmem_close( memHandle );
        if( memFile != -1 ) {
            close( memFile );
        }
        memHandle = NULL;
    }
#endif
}
Beispiel #7
0
void    CGMemFini( void )
/***********************/
{
#if _MEMORY_TRACKING & _FULL_TRACKING
    char        buff[80];

    if( !GetEnvVar( "TRQUIET", buff, 7 ) ) {
        _trmem_prt_list( Handle );
    }
    _trmem_close( Handle );
#elif _MEMORY_TRACKING & _CHUNK_TRACKING
    if( Chunks != 0 ) {
        _Zoiks( ZOIKS_002 );
    }
#endif
    MemFini();
}
Beispiel #8
0
Memory::~Memory()
{
    _trmem_prt_list( TrHdl );
    _trmem_close( TrHdl );
#ifdef __WINDOWS__
    close( TrFileHandle );
    if( NumMessages > 1 ) {
        MessageBox ( NULL, "memory problems detected", "Memory Tracker",
                     MB_ICONINFORMATION | MB_OK | MB_TASKMODAL );
    }
#endif
#ifdef __OS2__
    close( TrFileHandle );
    if( NumMessages > 1 ) {
        WinMessageBox ( HWND_DESKTOP, NULL, "memory problems detected",
                    "Memory Tracker", 0,
                     MB_ICONASTERISK | MB_OK | MB_APPLMODAL );
    }
#endif
}
Beispiel #9
0
extern void GUIMemClose( void )
/****************************/
{
#ifdef TRMEM
    _trmem_prt_list( GUIMemHandle );
    _trmem_close( GUIMemHandle );
#ifdef NLM
    if( GUIMemFileHandle != STDERR_HANDLE ) {
#else
    if( GUIMemFileHandle != STDERR_FILENO ) {
#endif
        close( GUIMemFileHandle );
    }
#endif
}

extern void GUIMemPrtUsage( void )
/*******************************/
{
#ifdef TRMEM
    _trmem_prt_usage( GUIMemHandle );
#endif
}
Beispiel #10
0
extern unsigned TRMemPrtList( void )
/******************************/
{
    return( _trmem_prt_list( TRMemHandle ) );
}