<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello Ross,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><EM>I use Live555 to stream mjpeg from camera
live.</EM></FONT></DIV>
<DIV><FONT face=Arial size=2>I wish add and remove dynamically a
<EM>ServerMediaSession</EM> but usually during remove a
<EM>ServerMediaSession</EM> from a rtspserver , I found some bugs exception
memory. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I read previous mail where you say it is possible.
So i think the trouble is how i delete my Object Medium.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The instance before the exception, is the state
where i remove a <EM>MediaSession</EM> and i proceed like that:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Firstly, i stop the sink by a
<EM>sink-></EM><FONT size=2><EM>stopPlaying()</EM>, and the i can remove the
source media </FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT
size=2><EM>source->stopGettingFrames().</EM></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Secondly, i remove fthe mediasession by invoke
rtspserver method "<FONT size=2><EM>removeServerMediaSession</EM>" and then i
close the sink, the source,the <EM>rtcpInstance</EM> and all
groupsock.</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can you help me about the order of remove Element
(Medium) and how ( because there are a lot of manner to remove a Medium...) .
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If there are existing replys , forward
me.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><EM>Thank you very
much</EM>.</FONT></DIV></BODY></HTML>