source: osgVisual/trunk/include/core/leakDetection.h @ 395

Last change on this file since 395 was 221, checked in by Torben Dannhauer, 14 years ago

Updated copyright NOTICE
(No code changes)

File size: 1.3 KB
Line 
1/* -*-c++-*- osgVisual - Copyright (C) 2009-2011 Torben Dannhauer
2 *
3 * This library is based on OpenSceneGraph, open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version.  The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * osgVisual requires for some proprietary modules a license from the correspondig manufacturer.
9 * You have to aquire licenses for all used proprietary modules.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * OpenSceneGraph Public License for more details.
15*/
16
17// Basic ideas for memory leak debugging:
18// http://weseetips.com/2008/06/17/how-to-detect-memory-leaks-by-using-crt/
19// http://stackoverflow.com/questions/532917/dealing-with-incorrect-memory-leak-reports-on-windows
20// http://msdn.microsoft.com/en-us/library/x98tx3cf.aspx
21
22#ifdef _DEBUG
23        #ifdef WIN32
24                #ifndef USE_SKY_SILVERLINING
25                        #ifndef DBG_NEW
26                                #define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
27                                #define new DBG_NEW
28                        #endif
29                #endif
30        #endif
31#endif
Note: See TracBrowser for help on using the repository browser.