I have tried this numerous ways on Windows 7 and always end up with a CPU spike every 10-15 seconds. I have no idea what is
causing it. Basically, I am connecting to a UDP port and echoing the received data back out and testing it with 500 packets/sec. Between spikes, the CPU is at roughly 0%, and the spikes are between 50% and 75%. Any ideas? It seems to be down in the ReceiveFrom/ReceiveFromAsync/SendTo functions, since everything else has been systematically tested.
public partial class MainWindow : Window
udp = new Udp(7000);
udp.ReceivedMessage += new Udp.ReceiveHandler(udp_ReceivedMessage);
void udp_ReceivedMessage(Udp udp, byte buffer, int size)
View Complete Post