K
kimtherkelsen
Hi,
I have made some software that uses one of the COM ports to
communicate with an external device. The software is written in C# and
uses the new SerialPort class in .Net 2.0.
It works perfectly when I use the COM ports that are integrated in my
PC. It also works if I use a COM->RS232 converter as long as I don't
unplug the converter when the software is running. If I unplug the
converter I get a .Net runtime 2.0 error:
http://therkelsen.info/images/blandet/atrack_prob.JPG
This error makes the .Net runtime environment shut down my software
and it seems like there is nothing I can do about it. I can not catch
the "objectDisposedException" because it is thrown inside the .Net
environment and makes the environment crash.
Any ideas about what I can do to stop the framework from crashing?
Is this a known bug in the .Net framework?
Best regards,
Kim Therkelsen
I have made some software that uses one of the COM ports to
communicate with an external device. The software is written in C# and
uses the new SerialPort class in .Net 2.0.
It works perfectly when I use the COM ports that are integrated in my
PC. It also works if I use a COM->RS232 converter as long as I don't
unplug the converter when the software is running. If I unplug the
converter I get a .Net runtime 2.0 error:
http://therkelsen.info/images/blandet/atrack_prob.JPG
This error makes the .Net runtime environment shut down my software
and it seems like there is nothing I can do about it. I can not catch
the "objectDisposedException" because it is thrown inside the .Net
environment and makes the environment crash.
Any ideas about what I can do to stop the framework from crashing?
Is this a known bug in the .Net framework?
Best regards,
Kim Therkelsen