Changeset 87 for osgVisual/include


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

Location:
osgVisual/include
Files:
3 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
  • osgVisual/include/core/visual_core.h

    r67 r87  
    160160
    161161        osg::ref_ptr<osgGA::NodeTrackerManipulator> nt;
     162
     163        osg::ref_ptr<visual_debug_hud> hud;
    162164};
    163165
  • osgVisual/include/sky_Silverlining/skySilverLining_ProjectionMatrixCallback.h

    r32 r87  
    5555        atmosphere(atm), camera(cam), csn(csn_), skyDrawable(0), minFar(90000), maxNear(2)
    5656    {
     57                #include <leakDetection.h>
     58
    5759        stockCullVisitor = osgUtil::CullVisitor::create();
    5860                //stockCullVisitor->setNearFarRatio( 0.00005 );
Note: See TracChangeset for help on using the changeset viewer.