Changeset 570 for trunk/VUT/GtpVisibilityPreprocessor/src/main.cpp
- Timestamp:
- 01/23/06 18:34:47 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/main.cpp
r556 r570 21 21 #define USE_EXE_PATH false 22 22 23 23 #include <crtdbg.h> 24 24 25 25 … … 28 28 main(int argc, char **argv) 29 29 { 30 31 //Now just call this function at the start of your program and if you're 32 //compiling in debug mode (F5), any leaks will be displayed in the Output 33 //window when the program shuts down. If you're not in debug mode this will 34 //be ignored. Use it as you will! 35 //note: from GDNet Direct [3.8.04 - 3.14.04] void detectMemoryLeaks() { 36 _CrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF|_CRTDBG_ALLOC_MEM_DF); 37 _CrtSetReportMode(_CRT_ASSERT,_CRTDBG_MODE_FILE); 38 _CrtSetReportFile(_CRT_ASSERT,_CRTDBG_FILE_STDERR); 39 30 40 Debug.open("debug.log"); 31 41 environment = new Environment;
Note: See TracChangeset
for help on using the changeset viewer.