.NET SerialPort DataReceived event not firing

前端 未结 9 711
忘掉有多难
忘掉有多难 2020-12-09 22:52

I have a WPF test app for evaluating event-based serial port communication (vs. polling the serial port). The problem is that the DataReceived event doesn\'t seem to be fir

9条回答
  •  忘掉有多难
    2020-12-09 23:35

    Two days ago I had the same problem and it was a big headache because I needed to deliver the app today. So.. after too much googleashion I supposed that the issue was another thing and not my code.

    My solution was uninstall McAfee antivirus and all things related with this. When I saw the logs of McAfee it had records about stop threads and I assumed that the SerialDataReceivedEventHandler() run in a thread.

    I hope this solution works for you. Regards.

提交回复
热议问题