[omniORB] Memory Leaks in WinNT

Bhatia, Neeraj Neeraj.Bhatia@compaq.com
Wed, 9 Aug 2000 17:24:11 -0400


Hi Andrei,

You are right. _CtrSetDbgFlag will not help, since the initialization
happens in the header files. I checked it.

Regards.

Neeraj

-----Original Message-----
From: Andrei Romanov [mailto:aromanov@northplains.com]
Sent: Wednesday, August 09, 2000 4:08 AM
To: omniorb-list@uk.research.att.com
Subject: Re: [omniORB] Memory Leaks in WinNT

_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