[omniORB] [Q] error testing for memleaks with Visual Studio
Martin Trappel
0xCDCDCDCD at gmx.at
Tue Mar 31 11:38:38 BST 2009
V S P wrote:
> 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>
> 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.
>
Does your project include MFC?
I have had problems with MFC leak detection before ...
( maybe check
http://www.omniorb-support.com/pipermail/omniorb-list/2008-July/029583.html
)
br,
Martin
More information about the omniORB-list
mailing list