// --------------------------------------------------------------- // File: fix_new.h // Purpose: Header that fixes the memory leak reporting problem with the DCRT // Author: Divyanand Kutagulla, dkutagulla@hotmail.com // Source: // Chapter 17, // Debugging Applications for Microsoft. NET and Microsoft Windows by John Robbins // Course: Software Testing Seminar, Spring 2004 // --------------------------------------------------------------- #ifndef FIX_NEW_H #define FIX_NEW_H #ifdef _DEBUG #ifndef NEW_INLINE_WORKAROUND #define NEW_INLINE_WORKAROUND new ( _NORMAL_BLOCK ,__FILE__ , __LINE__ ) #define new NEW_INLINE_WORKAROUND #endif #endif // _DEBUG #endif