V S P
2009-03-31 02:40:58 UTC
Hi,
want to test for memory leaks
and I am following the MSD article on the subject
that recommends adding this
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
Which I added to the top of my precompiled header file (that I include
everywhere)
This however conflicts with omniOrb, as I get errors all over the place
in stringtypes.h
for example
static inline void free(char* s) {
if (s && s != empty_string) delete[] s;
}
omniorb4/stringtypes.h ( 135, 183, 187 )
I am using latest release (win32/using Visual Studio 2008)
Wanted to ask if there is a workaround for this.
thank you in advance,
Vlad
want to test for memory leaks
and I am following the MSD article on the subject
that recommends adding this
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
Which I added to the top of my precompiled header file (that I include
everywhere)
This however conflicts with omniOrb, as I get errors all over the place
in stringtypes.h
for example
static inline void free(char* s) {
if (s && s != empty_string) delete[] s;
}
omniorb4/stringtypes.h ( 135, 183, 187 )
I am using latest release (win32/using Visual Studio 2008)
Wanted to ask if there is a workaround for this.
thank you in advance,
Vlad
--
V S P
***@fastmail.fm
--
http://www.fastmail.fm - Access your email from home and the web
V S P
***@fastmail.fm
--
http://www.fastmail.fm - Access your email from home and the web