<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>First, everyone who receives this mailing list as a 'Digest' should heed this advice:</div><div><br></div><div><blockquote type="cite"><div>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of live-devel digest..."<br></div></blockquote><br></div><div><br></div><div><br><blockquote type="cite"><div>Attached is the testRTSPClient.cpp that will crash.<br><br>If you use this as a source: <a href="rtsp://192.168.1.1:8554/main">rtsp://192.168.1.1:8554/main</a>,<br>then you will see heap corruption.<br></div></blockquote><div><br></div>No, sorry, I didn't.</div><div><br></div><div><br></div><div><blockquote type="cite"><div>If you comment out the Medium::close(rtspClient); on line 398, then it will no longer crash, but you would be leaking a lot of resources.<br></div></blockquote><div><br></div>There should be no problem with that call to "Medium::close(rtspClient)", because - at that point in the code - "rtspClient" should be a valid pointer, to a still-valid "RTSPClient" object. (Also, the call to "Medium::close(rtspClient)" is done only once, so (as far as I can tell) there's no attempt to delete an already-deleted object.) </div><br><div>So, I don't understand why that call to "Medium::close(rtspClient)" is failing for you. I'm not ruling out the possibility of a bug in the code, but - if so - it seems to be something that only you are tripping over. So you're going to have to track down the problem yourself. Sorry.</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>