Hi,<br><br>Just want to find out:<br><br>(1) Are you creating your RTP and RTCP socket as the following?<br><br><br>  Groupsock rtpGroupsock(*env, destinationAddress, rtpPort, ttl);<br>  Groupsock rtcpGroupsock(*env, destinationAddress, rtcpPort, ttl);<br>
<br>(2) And are you creating those objects in a function call?<br><br>If it is so, you will get that select() fail error, because the socket objects are released after your function returning. This can be shown from your referred API, where the sockets are used as pointers.<br>
<br>This is what I experienced before by copying the test code. :-)<br><br>Good luck<br><br>Woods<br><br><br><br><br><div class="gmail_quote">On Tue, Jun 16, 2009 at 9:45 AM, wong yeewan <span dir="ltr">&lt;<a href="mailto:yeewan_20@yahoo.com">yeewan_20@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
<div>Hi,</div>
<div> </div>
<div>First of all, thanks for your reply. I read the reply but i don&#39;t know how to make the correction. I checked the Groupsocks&#39; objects defined in RTPSink and RTPSource.cpps and I found that they were defined as pointer objects. For examples, </div>

<div> </div><font size="2">
<div>RTPSource::RTPSource(UsageEnvironment&amp; env, <b>Groupsock* RTPgs</b>, </div></font><font size="2" color="#0000ff"><font size="2" color="#0000ff">unsigned</font></font><font size="2"> </font><font size="2" color="#0000ff"><font size="2" color="#0000ff">char </font></font><font size="2">rtpPayloadFormat,u_int32_t rtpTimestampFrequency)</font>
<div><font size="2"></font> </div><font size="2"><font size="2">
<div>RTPSink::RTPSink(UsageEnvironment&amp; env, <b>Groupsock* rtpGS</b>, </div></font><font size="2" color="#0000ff"><font size="2" color="#0000ff">unsigned</font></font><font size="2"> </font><font size="2" color="#0000ff"><font size="2" color="#0000ff">char</font></font><font size="2"> rtpPayloadType, </font><font size="2" color="#0000ff"><font size="2" color="#0000ff">unsigned</font></font><font size="2"> rtpTimestampFrequency, </font><font size="2" color="#0000ff"><font size="2" color="#0000ff">char</font></font><font size="2"> </font><font size="2" color="#0000ff"><font size="2" color="#0000ff">const</font></font><font size="2">* rtpPayloadFormatName,
<div></div></font><font size="2" color="#0000ff"><font size="2" color="#0000ff">unsigned</font></font><font size="2"> numChannels)</font>
<div></div></font> 
<div>I am new to live555 and also C++ programming. Can you please give me more directions on solving this problem?</div>
<div> </div>
<div>Thank you</div>
<div> </div>
<div>Regards,</div>
<div>Yee Wan<br><br>--- On <b>Mon, 6/15/09, Woods <i>&lt;<a href="http://woods.biz" target="_blank">woods.biz</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>&gt;</i></b> wrote:<br></div>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;"><br>From: Woods &lt;<a href="http://woods.biz" target="_blank">woods.biz</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>&gt;<br>
Subject: Re: [Live-devel] (no subject)<br>To: &quot;LIVE555 Streaming Media - development &amp; use&quot; &lt;<a href="mailto:live-devel@ns.live555.com" target="_blank">live-devel@ns.live555.com</a>&gt;<br>Date: Monday, June 15, 2009, 12:09 PM<br>
<br>
<div>Hi,<br><br>I guess you copied from test code as I did before :)<br><br>It is because of that GroupSock. Don&#39;t use as a stack object which will be released after function call. <br><br>Use a pointer for that GroupSock for RTP and RTCP.<br>
<br>Woods<br><br><br>
<div class="gmail_quote">On Mon, Jun 15, 2009 at 6:01 PM, wong yeewan <span dir="ltr">&lt;<a href="http://us.mc515.mail.yahoo.com/mc/compose?to=yeewan_20@yahoo.com" rel="nofollow" target="_blank">yeewan_20@yahoo.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="font-family: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
<div>Hi all,</div>
<div> </div>
<div>I am interested to use testMPEG1or2ProgramtoTransportStream to convert a MPEG2 video file into TS file. I selected all the header and source files that were needed to build testMPEG1or2ProgramtoTransportStream. I finally built the testMPEG1or2ProgramtoTransportStream.exe in Visual C++ 2005 in Windows. However, problem occured when I ran it. The error message was:</div>

<div> </div>
<div>Beginning to read...</div>
<div>BasicTaskScheduler::SingleStep():select() fails: No error</div>
<div> </div>
<div>And I obtained an output file which was zero in size. Can anyone please help me with this matter?</div>
<div> </div>
<div>Thank you</div>
<div> </div>
<div>Regards,</div>
<div>Yee Wan</div>
<div> </div>
<div> </div></td></tr></tbody></table><br><br>_______________________________________________<br>live-devel mailing list<br><a href="http://us.mc515.mail.yahoo.com/mc/compose?to=live-devel@lists.live555.com" rel="nofollow" target="_blank">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" rel="nofollow" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Woods<br></div>
<br>-----Inline Attachment Follows-----<br><br>
<div>_______________________________________________<br>live-devel mailing list<br><a href="http://us.mc515.mail.yahoo.com/mc/compose?to=live-devel@lists.live555.com" target="_blank">live-devel@lists.live555.com</a><br><a href="http://lists.live555.com/mailman/listinfo/live-devel" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</div></blockquote></td></tr></tbody></table><br>

      <br>_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Woods<br>