[omniORB] Memory Leaks in WinNT

Andrei Romanov aromanov@northplains.com
Tue, 8 Aug 2000 16:08:22 -0400


_CrtSetDbgFlag() will not help in the example. So to see leaks is enough to
add #include "xxxx.hh" only, where "xxxx.hh" is the header file that was
generated by idl-compiler.

Andrei Romanov

----- Original Message -----
From: "Guy Trudel" <gtrudel@mediatrix.com>
To: <mberry@mweb.co.za>
Cc: "Omniorb-List (E-mail)" <omniorb-list@uk.research.att.com>
Sent: Tuesday, August 08, 2000 10:48 AM
Subject: RE: [omniORB] Memory Leaks in WinNT


> They are not 'real' memory leaks, they are singleton and initialisation
> stuff that must be there for the lifetime of the process. Once simple way
to
> get rid of lot of them is to temporary deactivate the memory allocation
> check.
>
>     _CrtSetDbgFlag( ~_CRTDBG_ALLOC_MEM_DF );
>
>     CORBA::ORB_ptr orb = CORBA::ORB_init(nArcg,ppArg,"omniORB2");
>     CORBA::BOA_ptr boa = orb->BOA_init(nArcg,ppArg,"omniORB2_BOA");
>
>     _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF );
>
> Guy Trudel