<DIV>hi friends.</DIV>
<DIV> </DIV>
<DIV>i have a h264 frame source.which read frames from other live source.</DIV>
<DIV>so i write the code like this</DIV>
<DIV> </DIV>
<DIV>nextTask() = envir().taskScheduler().scheduleDelayedTask(40000,(TaskFunc*)afterGetting, this);</DIV>
<DIV> </DIV>
<DIV>when the input buffer doesn't have data.</DIV>
<DIV> </DIV>
<DIV>normally .this worked very fine.</DIV>
<DIV>but if the client seek the frames very often.</DIV>
<DIV>the server will be crash.</DIV>
<DIV>after debug many hours.i founded that,after client send PAUSE ,</DIV>
<DIV>server delete h264fuaframer .and then the nextTask() was schedule.</DIV>
<DIV>and when it calls afterGetting.the application crash because of null pointer call.</DIV>
<DIV> </DIV>
<DIV>did i do the right thing for calling nextTask() = envir().taskScheduler().scheduleDelayedTask(4000,(TaskFunc*)afterGetting, this);??????????????????????????????????????????</DIV>
<DIV>if i use </DIV>
<DIV> </DIV>
<DIV>Sleep(10);</DIV>
<DIV>afterGetting(this);</DIV>
<DIV> </DIV>
<DIV>problem solved.but new problem come out.</DIV>
<DIV>Sleep(10) means the thread can't serve other client during these 10 ms.</DIV>
<DIV>what should i do .</DIV>
<DIV> </DIV>
<DIV>thanks.</DIV>