<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div>I want to simply close and delete existing  UsageEnvironment</div></blockquote><div><br></div>The (one and only) way to do this is to call "reclaim()" on the "UsageEnvironment" object.  However, as you noted, this will not actually delete the object if the "liveMediaPriv" pointer is non-NULL.  That happens if you call "reclaim()" on the "UsageEnvironment" when some "Medium" objects still exist, and/or some socket(s) are still open.  So, if you really want to reclaim the (minuscule) memory used by a "UsageEnvironment", then you need to first make sure that all "Medium" objects, and all sockets, have been closed.</div><div><br></div><div>But, if you've really finished all LIVE555-related computation, and want to reclaim all of its state, then *by far* the easiest/best way to do this is to put all of the LIVE555-related computation in its own process (i.e., application), and just have this application "exit()".  (But apparently many modern-day developers don't understand processes :-)</div><div><br></div><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>