Home All Groups Group Topic Archive Search About

.Net runtime 2.0 error, Event id: 5000

Author
7 Feb 2007 8:42 PM
kimtherkelsen@gmail.com
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

Author
29 Apr 2007 6:50 AM
Jos G
Hello Kim,

Please take a look at this thread:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=244068&SiteID=1

I think it has a valid solution.

Regards,
Jose

Show quote
"kimtherkel***@gmail.com" wrote:

> 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
>
>

AddThis Social Bookmark Button