Ignore:
Timestamp:
Jul 28, 2010, 5:13:22 PM (14 years ago)
Author:
Torben Dannhauer
Message:

Introductes VS 2008 Memory Leak Debugging.
Todo: Compile on Linux and compare with Valgrind, VS 2008 seems to be awkward in leak debugging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/include/core/leakDetection.h

    r86 r87  
    2121
    2222#ifdef _DEBUG
    23         #ifndef DBG_NEW
    24                 #define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
    25                 #define new DBG_NEW
     23        #ifdef WIN32
     24                #ifndef DBG_NEW
     25                        #define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
     26                        #define new DBG_NEW
     27                #endif
    2628        #endif
    2729#endif
Note: See TracChangeset for help on using the changeset viewer.