[omniORB] [Q] error testing for memleaks with Visual Studio

V S P toreason at fastmail.fm
Mon Mar 30 17:40:56 BST 2009


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

-- 
  V S P
  toreason at fastmail.fm

-- 
http://www.fastmail.fm - Access your email from home and the web




More information about the omniORB-list mailing list