I would first do as Richard MacCutchan says in the comments "
Quote:
You first need to diagnose why the crash occurred in your code.
Then, if your code is working and it turns out there's a speed issue, there are things you can do .. this for instance
Improving the Performance of Serial Ports Using C#[
^] (this is from his series here
Dotric Pty Ltd - Software[
^] )
See also :
If you *must* use .NET System.IO.Ports.SerialPort | Hardware, Software & Product Development | Sparx Engineering[
^]
My point is it's easy to say the existing .NET classes etc are deficient in some way, and I want to re-write it for myself - by that is a hell of a lot of work - Interesting have been in this position the best way we ended up fixing the speed issues were to attach a proprietary dongle to the serial port of the device and handle reading it with MODBUS over TCP/IP