> I am trying to shutdown my subclassed rtsp client and because of the > migration to async, I am having a hard time avoiding access violations. > > It seems like the object destroys when I call Media::close and then it tries > to handle an incoming response or data and then crashes when there is no > RequestQueue. So fHead is invlaid and fHead->next crashes. > > I must not be doing this correct. I am following the shutdown logic in the > OpenRTSP, but it uses exit() so it is a bit differnet.
The code in the "continueAfterTEARDOWN()" function is what you should be doing, I think; just leave off the call to "exit()" at the end. If you use this code (after you've done a RTSP "TEARDOWN"), then I don't see how you could still be receiving any incoming packets for that session. 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