<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: ial;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"; mso-style-priority: 99; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
P.emailquote {
        FONT-SIZE: 12pt; MARGIN-LEFT: 1pt; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"; mso-style-priority: 99; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-style-name: emailquote
}
LI.emailquote {
        FONT-SIZE: 12pt; MARGIN-LEFT: 1pt; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"; mso-style-priority: 99; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-style-name: emailquote
}
DIV.emailquote {
        FONT-SIZE: 12pt; MARGIN-LEFT: 1pt; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"; mso-style-priority: 99; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-style-name: emailquote
}
SPAN.EmailStyle19 {
        COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal
}
SPAN.EmailStyle21 {
        COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-reply
}
.MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=774172611-24082009><FONT face=Arial color=#0000ff size=2>the
answer is yes for both ...</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> live-devel-bounces@ns.live555.com
[mailto:live-devel-bounces@ns.live555.com] <B>On Behalf Of </B>Stas
Desyatnlkov<BR><B>Sent:</B> Monday, August 24, 2009 2:20 PM<BR><B>To:</B>
LIVE555 Streaming Media - development & use<BR><B>Subject:</B> Re:
[Live-devel] live object delete sequence<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">I
did this:<o:p></o:p></SPAN></P>
<P class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Courier New'"> </SPAN></B><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">rtp_sock_
= new Groupsock(*env_, destinationAddress, rtpPort, 10);<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">
rtcp_sock_ = new Groupsock(*env_, destinationAddress, rtcpPort,
10);<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">
vsink_ = SimpleRTPSink::createNew(*env_, rtp_sock_, 33, 90000,
<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">
"video", "mp2t", 1, True, False /*no 'M' bit*/);<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">
RTCPInstance* rtcp = RTCPInstance::createNew(*env_,
rtcp_sock_,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">
estimatedSessionBandwidth, CNAME, vsink_, NULL, false);<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">So
in the above example do I have to delete rtp_sock & rtcp_sock? Can I safely
delete rtcp pointer after the server is stopped?<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<DIV>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
live-devel-bounces@ns.live555.com [mailto:live-devel-bounces@ns.live555.com]
<B>On Behalf Of </B>Yedidia Amit<BR><B>Sent:</B> Monday, August 24, 2009 12:47
PM<BR><B>To:</B> LIVE555 Streaming Media - development &
use<BR><B>Subject:</B> Re: [Live-devel] live object delete
sequence<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">Thats
depends on what you wrote...</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">if you
creadted RTSP server you shuld delete it.</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">if there
are active sessions in your server you should delete them before deleting the
server etc..</SPAN><o:p></o:p></P></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center>
<HR align=center width="100%" SIZE=3>
</DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
live-devel-bounces@ns.live555.com [mailto:live-devel-bounces@ns.live555.com]
<B>On Behalf Of </B>Stas Desyatnlkov<BR><B>Sent:</B> Monday, August 24, 2009
12:26 PM<BR><B>To:</B> LIVE555 Streaming Media - development &
use<BR><B>Subject:</B> Re: [Live-devel] live object delete
sequence</SPAN><o:p></o:p></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">That
is what I’m doing.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Will
the rest of the objects get disposed too?<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<DIV>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
live-devel-bounces@ns.live555.com [mailto:live-devel-bounces@ns.live555.com]
<B>On Behalf Of </B>Yedidia Amit<BR><B>Sent:</B> Monday, August 24, 2009 11:57
AM<BR><B>To:</B> LIVE555 Streaming Media - development &
use<BR><B>Subject:</B> Re: [Live-devel] live object delete
sequence<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<DIV>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">you should
call reclaim() on the usageEnviroment, and then delete the task
schedualer.</SPAN><SPAN style="FONT-SIZE: 10pt">
</SPAN><o:p></o:p></P>
<P><SPAN style="FONT-SIZE: 10pt">pEnv->reclaim();<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt">delete pTaskSchedualer;</SPAN><o:p></o:p></P>
<P> <o:p></o:p></P>
<P><SPAN style="FONT-SIZE: 10pt">Amit Yedidia</SPAN><o:p></o:p></P>
<P> <o:p></o:p></P></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center>
<HR align=center width="100%" SIZE=3>
</DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
live-devel-bounces@ns.live555.com [mailto:live-devel-bounces@ns.live555.com]
<B>On Behalf Of </B>Stas Desyatnlkov<BR><B>Sent:</B> Monday, August 24, 2009
11:45 AM<BR><B>To:</B> live-devel@ns.live555.com<BR><B>Subject:</B> [Live-devel]
live object delete sequence</SPAN><o:p></o:p></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri','sans-serif'">Hi,<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri','sans-serif'"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri','sans-serif'">In my app I have to
create and delete live objects (scheduler, usage environment, rtp sink, rtcp,
video source, stremer…) multiple times.<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri','sans-serif'">What should be the
proper delete sequence for the above? Does deleting the usage environment also
destroys scheduler?<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri','sans-serif'">Do I have to delete
RTP and RTCP sockets separately?<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri','sans-serif'"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri','sans-serif'"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri','sans-serif'"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><STRONG><SPAN style="FONT-FAMILY: 'ial','serif'">sensitive
information. Unauthorized interception of this e-mail may constitute
</SPAN></STRONG><B><SPAN style="FONT-FAMILY: 'ial','serif'"><BR><STRONG><SPAN
style="FONT-FAMILY: 'ial','serif'">a violation of law. If you are not the
intended recipient, you are hereby </SPAN></STRONG><BR><STRONG><SPAN
style="FONT-FAMILY: 'ial','serif'">notified that any review, dissemination,
distribution or duplication of this </SPAN></STRONG><BR><STRONG><SPAN
style="FONT-FAMILY: 'ial','serif'">communication is strictly prohibited. You are
also asked to contact the sender </SPAN></STRONG><BR><STRONG><SPAN
style="FONT-FAMILY: 'ial','serif'">by reply email and immediately destroy all
copies of the original message.</SPAN></STRONG></SPAN></B><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><STRONG><SPAN style="FONT-FAMILY: 'ial','serif'">sensitive
information. Unauthorized interception of this e-mail may constitute
</SPAN></STRONG><B><SPAN style="FONT-FAMILY: 'ial','serif'"><BR><STRONG><SPAN
style="FONT-FAMILY: 'ial','serif'">a violation of law. If you are not the
intended recipient, you are hereby </SPAN></STRONG><BR><STRONG><SPAN
style="FONT-FAMILY: 'ial','serif'">notified that any review, dissemination,
distribution or duplication of this </SPAN></STRONG><BR><STRONG><SPAN
style="FONT-FAMILY: 'ial','serif'">communication is strictly prohibited. You are
also asked to contact the sender </SPAN></STRONG><BR><STRONG><SPAN
style="FONT-FAMILY: 'ial','serif'">by reply email and immediately destroy all
copies of the original
message.</SPAN></STRONG></SPAN></B><o:p></o:p></P></DIV></DIV>
<DIV><STRONG><FONT color=#000080 size=2></FONT></STRONG> </DIV>
<DIV align=left><STRONG><FONT face=Arial color=#000080 size=2>The information in
this e-mail transmission contains proprietary and business <BR>sensitive
information. Unauthorized interception of this e-mail may constitute <BR>a
violation of law. If you are not the intended recipient, you are hereby
<BR>notified that any review, dissemination, distribution or duplication of this
<BR>communication is strictly prohibited. You are also asked to contact the
sender <BR>by reply email and immediately destroy all copies of the original
message.<BR></FONT></STRONG></DIV>
</BODY></HTML>