Ignore:
Timestamp:
06/19/08 22:57:08 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/CHC_revisited/chcdemo.cpp

    r2780 r2781  
    117117int main(int argc, char* argv[]) 
    118118{ 
     119        int returnCode = 0; 
     120 
     121#ifdef _CRT_SET 
     122 
     123        //Now just call this function at the start of your program and if you're 
     124        //compiling in debug mode (F5), any leaks will be displayed in the Output 
     125        //window when the program shuts down. If you're not in debug mode this will 
     126        //be ignored. Use it as you will! 
     127        //note: from GDNet Direct [3.8.04 - 3.14.04] void detectMemoryLeaks() { 
     128 
     129        _CrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF|_CRTDBG_ALLOC_MEM_DF); 
     130        _CrtSetReportMode(_CRT_ASSERT,_CRTDBG_MODE_FILE); 
     131        _CrtSetReportFile(_CRT_ASSERT,_CRTDBG_FILE_STDERR);  
     132#endif 
     133 
     134 
    119135        camera = new Camera(winWidth, winHeight); 
    120136        camera->SetNear(nearDist); 
Note: See TracChangeset for help on using the changeset viewer.