Ignore:
Timestamp:
Jul 29, 2010, 8:39:55 AM (14 years ago)
Author:
Torben Dannhauer
Message:

Moved memory leak detection from source file to headerfile. Its still in the class but at least not in the source file.

The leak detection works, but the false positives are not stopped.
Use Linux/Valgrind? to make your final leak detection beyond the easy first approach in MSVC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/src/core/osgVisual.cpp

    r87 r88  
    2626#endif
    2727
     28
    2829//#include <windows.h>
    2930
     
    4243#ifdef _DEBUG
    4344        #ifdef WIN32
    44                 #include <leakDetection.h>      // ugly but must be included inside the class
    45 
     45                #include <leakDetection.h>      // for main: must be inside function. In classes: headerfile inside calss is sufficient
    4646                int tmp_flag;
    4747
     
    5555                        _CRTDBG_MODE_DEBUG);
    5656
    57                 // output to the file if not under VS
     57                // output to the file
    5858                _CrtSetReportFile(_CRT_ASSERT, log_file);
    5959                _CrtSetReportFile(_CRT_WARN, log_file);
Note: See TracChangeset for help on using the changeset viewer.