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?