Dear Sir:<br><br>Build from the latest source with VC6 on Windows XP.<br><br>The openRTSP calls exit() in BasicTaskScheduler::SingleStep() on receiving multicast streaming from AXIS IP camera(that is, forceMulticastUnspecified should be set True) on some PCs while others not.<br>
<br>After doing some tracing, I add the following code to print debugging information about the sockets to select before exit():<br><br>void BasicTaskScheduler::SingleStep(unsigned maxDelayTime) {<br>.....<br>#if !defined(_WIN32_WCE)<br>
perror("BasicTaskScheduler::SingleStep(): select() fails");<br>#endif<br><br>fprintf(stderr, "BasicTaskScheduler::SingleStep(): select() fails with ret %d, err %d\n", selectResult, err);<br>HandlerIterator iter(*fReadHandlers);<br>
HandlerDescriptor* handler;<br>while ((handler = iter.next()) != NULL) {<br> bool inReadSet = FD_ISSET(handler->socketNum, &readSet) ? true : false;<br> bool infReadSet = FD_ISSET(handler->socketNum, &fReadSet) ? true : false;<br>
fprintf(fp, "BasicTaskScheduler::SingleStep(): sock %d %s readSet, %s fReadSet\n", <br> handler->socketNum, inReadSet ? "in" : "not in", infReadSet ? "in" : "not in");<br>
}<br>exit(0);<br>.....<br>}<br><br>The output are as follows:<br>BasicTaskScheduler::SingleStep(): select() fails: No Error<br>BasicTaskScheduler::SingleStep(): select() fails with ret -1, err 10038<br>BasicTaskScheduler::SingleStep(): sock 1212 in readSet, in fReadSet<br>
BasicTaskScheduler::SingleStep(): sock 992 in readSet, in fReadSet<br>BasicTaskScheduler::SingleStep(): sock 916 in readSet, in fReadSet<br>BasicTaskScheduler::SingleStep(): sock 1272 in readSet, in fReadSet<br>BasicTaskScheduler::SingleStep(): sock 1044 in readSet, in fReadSet<br>
<br>Only some PCs(running Windows XP) have such a problem while others not.<br>Any ideas?<br><br>Also, no problem with the testMPEG4VideoStreamer(no need to set forMulticastUnspecified) on such PCs.<br><br>BR.<br>Brain Lai<br>