<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div><blockquote type="cite">My ptable pointer allocated in MediaLookupTable::ourMedia but never deleted<br></blockquote><blockquote type="cite">No, that's incorrect - it *will* get deleted, if/when all "Medium" objects end<br></blockquote>up getting deleted (so there's no memory leak here).<br><br>Both VLD (visual leak detector) and ms crt debug runtime reports leaks in that<br>code. </div></blockquote><div><br></div>Once again, this table will get deleted if (and only if) all "Medium" objects get deleted.  (Recall that "Medium" objects are deleted by calling "Medium::close()".)</div><div><br></div><div><br><blockquote type="cite"><div>BTW, i also interested in removing UsageEnvironment object too. In the sample<br>code you are advised termination code looks like this:<br><br>pliveenvironment->reclaim();<br>delete m_plivetaskscheduller;<br></div></blockquote><div><br></div>That's correct.  Note that the call to "UsageEnvironment::reclaim()" will reclaim all allocated memory, but *only if* all "Medium" objects have already been deleted.</div><div><br></div><div>But the best/easiest way to reclaim all of the memory for all of the LIVE555-allocated objects is simply to call "exit(0)" - i.e., by exiting the entire process.  (But I forget - this is the 21st century.  For some odd reason, software developers now have forgotten how to structure their applications using multiple processes :-)</div><br><br><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>