<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>
<PRE> </PRE><PRE>Ok, it's a fact that the memory will be reclaimed by the operating system on program exit, but it's not nice to see all those memory leaks reported by boundschecker on program exit ( i'am running under windows by the way ). </PRE><PRE>Suppose the server ran inside a program that added a watch variable to the doEventLoop to stop it and later start it again! Then you would need to clean-up right? So the question was not which button to hit to exit the program :-), but what the proper way is to clean-up and in what order? </PRE><PRE>P.S. Sorry for calling the media server a demo program :-)</PRE><PRE> </PRE><PRE> </PRE><PRE> </PRE><PRE>><I>One more question, what is the proper way to shutdown the LIVE555
</I>><I>media server.
</I>
Just <control>-C (or the "kill" command).
><I> The demo source just enters an endless loop
</I>
The "live555MediaServer" code (unlike the code for the application in
the "testProgs" directory) is not 'demo source'. It's the source for
a complete application (product).
><I>, and if the program is forced to exit you get lots of memory leaks.
</I>
Not at all. Once any application ends (no matter how it ends), all
of its memory is reclaimed by the operating system. (Similarly, all
of its network sockets get closed.)
><I> Could you enlight me with the proper
</I>><I>shutdown procedure?
</I>
Just kill it.
--
Ross Finlayson
Live Networks, Inc.
<A href="http://www.live555.com/"><U><FONT color=#0000ff>http://www.live555.com/</FONT></U></A>
</PRE><!--endarticle--><br /><hr />het ultieme online mailprogramma! <a href='http://get.live.com/mail/overview' target='_new'>Ontdek Windows Live Hotmail,</a></body>
</html>