[omniORB] Memory leaks in MFC app.

vladimir_d@rad.co.il vladimir_d@rad.co.il
Mon, 21 Jun 1999 12:37:55 +0300


This is a multi-part message in MIME format.

------=_NextPart_000_009A_01BEBBE2.A7414C30
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

Hi,
I'm writing some MFC application with OmniORB2 (VC 6.0, NT4). I've generated
the MFC based dialog and just add there "#include <omniORB2/CORBA.h>" that
was enough for "Detected memory leaks" error when I quit the program. So,
it's seems that just including CORBA headers initialize some objects, that
"forgot" release the memory. By the way if I use the classes, like in echo
examples (eg3_*.cc) "->ORB_init" or "->BOA_init" that's strongly increase
the number of dumping objects (that leaks memory).
There are 2 questions:
1)Any suggestions(may be project settings).
2)What is reverse action (destructor) for ORB_init/BOA_init I tried 
"delete"  but it unfortunately doesn't change leaks areas or dumping objects
number.
 
Thanks,
Vlad.

------=_NextPart_000_009A_01BEBBE2.A7414C30
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">



<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D268015316-20061999><FONT color=3D#000000 face=3DArial =
size=3D2>Hi,=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D268015316-20061999><FONT color=3D#000000 face=3DArial =
size=3D2>I'm=20
writing some MFC application with OmniORB2 (VC 6.0, NT4). I've generated =
the MFC=20
based dialog and just add there &quot;#include =
&lt;omniORB2/CORBA.h&gt;&quot;=20
that was enough for <U>&quot;Detected memory leaks&quot;</U> error when =
I quit=20
the program. So, it's seems that just including CORBA headers initialize =
some=20
objects, that &quot;forgot&quot; release the memory. By the way if I use =
the=20
classes, like in echo examples (eg3_*.cc) &quot;-&gt;ORB_init&quot; or=20
&quot;-&gt;BOA_init&quot; that's strongly increase the number of dumping =
objects=20
(that leaks memory). </FONT></SPAN></DIV>
<DIV><SPAN class=3D268015316-20061999><FONT color=3D#000000 face=3DArial =
size=3D2>There=20
are 2 questions:</FONT></SPAN></DIV>
<DIV><SPAN class=3D268015316-20061999><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN><SPAN class=3D268015316-20061999><FONT =
color=3D#000000=20
face=3DArial size=3D2>1)Any suggestions(may be project=20
settings).</FONT></SPAN></DIV>
<DIV><SPAN class=3D268015316-20061999><FONT color=3D#000000 face=3DArial =
size=3D2>2)What=20
is reverse action (destructor) for ORB_init/BOA_init I tried&nbsp;<SPAN=20
class=3D179443209-21061999><FONT color=3D#0000ff face=3DArial size=3D2>=20
&quot;</FONT></SPAN>delete<SPAN class=3D179443209-21061999><FONT =
color=3D#0000ff=20
face=3DArial size=3D2>&quot;&nbsp;</FONT></SPAN> but it unfortunately =
doesn't change=20
leaks areas or dumping objects number.</FONT></SPAN></DIV>
<DIV><SPAN class=3D268015316-20061999><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D268015316-20061999><FONT color=3D#000000 face=3DArial =

size=3D2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=3D268015316-20061999><FONT color=3D#000000 face=3DArial =

size=3D2>Vlad.</FONT></SPAN></DIV></BODY></HTML>

------=_NextPart_000_009A_01BEBBE2.A7414C30--