> //try catch execute when stop message come and my code break here > try > { > if(sms) > { > Medium::close(sms); > } > > rtspServer->deleteServerMediaSession(sms); > } > catch(...) > { > if(sms) > { > Medium::close(sms); > } > rtspServer->deleteServerMediaSession(sms); > } > > Can you please guide why my code is breaking.
It's because you are calling "Medium::close(sms);" as well as "rtspServer->deleteServerMediaSession(sms);". You shouldn't do that! You should only be calling rtspServer->deleteServerMediaSession(sms); That will delete "sms" as well. Ross Finlayson Live Networks, Inc. http://www.live555.com/
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel