Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2006

Tip: Looking for answers? Try searching our database.

Bug in SerialPort Class NET 2005?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
aayre - 05 Jun 2006 02:15 GMT
Hi All,

Can anyone tell me if there is a known bug and possible a fix for the
SerialPort Class (System.IO.Ports.SerialPort) in .NET 2005? More
specificly
to do with USB ComPorts?

I have found the following:
1) Open a SerialPort which happens to be a USB RS232 converter device.
2) Data can be sent and received OK.
3) Pull the plug on the USB device and CPU usage goes way up and memory
starts to leaking.
4) The only way to stop the leak and free the resources is the exit the
.NET
application then GC seems to clean things up.
5) Somes time you might event get a BSOD and the OS creashes (Win XP).
6) The type of USB harware does not seem to make any difference.

I belive this is a problem with the .NET 2005 framework as this problem
does
not happen in VB6 or when using HyperTerminal.
I managed to stop the BSOD by inheriting the SerialPort Class and
Overriding
the Dispose method.

When can we expect this problem to be fixed? Will it be in SP1 for NET
2005?
Any response would be greatful (except the ones that same "I have the
same
problem").

-aayre
Michael D. Ober - 05 Jun 2006 03:51 GMT
Are you "stopping" your USB serial port with the "Unplug or Eject Hardware"
applet?

Mike Ober.

> Hi All,
>
[quoted text clipped - 28 lines]
>
> -aayre
aayre - 07 Jun 2006 01:23 GMT
Mike,

Thanks for you reply, but unfortunately in the environment that our
.NET application will be running in (application will be running on a
laptop installed in a truck) we are unable to use "Unplug or Eject
Hardware". Our application will generally have USB devices connected
via an external powered USB hub. The power to this hub can be turned
off without warning (truck engine is turned off). This is when we have
the problem.

-aayre

> Are you "stopping" your USB serial port with the "Unplug or Eject Hardware"
> applet?
[quoted text clipped - 33 lines]
> >
> > -aayre
Carl Daniel [VC++ MVP] - 05 Jun 2006 04:13 GMT
> Hi All,
>
[quoted text clipped - 23 lines]
> When can we expect this problem to be fixed? Will it be in SP1 for NET
> 2005?

Have you reported it to Microsoft?  If not, please do so.

http://lab.msdn.microsoft.com/productfeedback

Have you contacted product support?  You might want to if this is causing
you major problems.

-cd
aayre - 07 Jun 2006 01:28 GMT
Carl,

I will defiantly be report it. I was not aware how to before, now I
know :-)

-aayre

> > Hi All,
> >
[quoted text clipped - 32 lines]
>
> -cd

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.