LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

UDP Callback started in another thread stops

I have a thread that kicks off a bunch of UDP threads and keeps going until STOP, PAUSE or EXIT is pressed on the GUI. 

 

int CVICALLBACK UdpReadCallbackThread(void* functionData){
   double processSystemEventsTimer = 0;
   double oneSecondFromLastCall = 0;
   int processSystemEventCntr = 0;
   OpenUDPChannels();
      while(quit == 0 && stopTest == 0 && pauseFlag == 0){
           ProcessSystemEvents();
     }
    CloseUdpChannels();
    return 0;
}

 

I'm using the UDP callback mechanism to handle all UDP traffic, but for some reason certain udp callbacks are only called for a couple packets then they stop responding. 

 

OpenUDPChannels has a bunch of CreateUDPChannelConfig calls for different port numbers.  

 

What could be causing the callback to stop running?

0 Kudos
Message 1 of 1
(802 Views)