<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content="MSHTML 5.00.3315.2870" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>I used OmniORB3.0.4.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I have created a method shutdown() for an Interface
Layer.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>OLayer inherits from Layer and has a member CORBA::ORB_ptr
orb;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>struct Point {</FONT></DIV>
<DIV><FONT size=2> long x;</FONT></DIV>
<DIV><FONT size=2> long y;</FONT></DIV>
<DIV><FONT size=2>};</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>typedef sequence<Point> PtSeq;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>OLayer has a member of PtSeq type.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>OLayer::shutdown()</FONT></DIV>
<DIV><FONT size=2>{</FONT></DIV>
<DIV><FONT size=2> orb->shutdown(0);</FONT></DIV>
<DIV><FONT size=2>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>In the client program, </FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT size=2>when I call the shutdown() method, the server
shutdown.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>But VC report many memory leaks.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>why?</FONT></DIV></BODY></HTML>