<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Is this a wrong way to maintain the connection to the camera? Could this be the cause of the crash?</div></div></blockquote><div><br></div>No, I don't think so. What you're doing looks OK. Just make sure, though, that you stop the periodic calls to timeout() if/when the session ends. (You can do this using "TaskScheduler::unscheduleDelayedTask()".) If you try to call your "RtspConnection::timeout()" after "client" and/or "session" have been deleted, then bad things will definitely happen.</div><div><br></div><div><br></div><div>Also (although this is not the cause of your problem) you should really be using the asynchronous "RTSPClient" interface rather than the old synchronous interface. E.g., you should be calling "sendGetParameterCommand()" instead of "getMediaSessionParameter()", and "sendOptionsCommand()" instead of "sendOptionsCmd()". Etc. The synchronous "RTSPClient" interface is now deprecated, and will likely be removed completely sometime in the future.</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>