Windows 7 SP1如果使用SerialPort.GetPortNames()会出错? [英] Windows 7 SP1 Bug if using SerialPort.GetPortNames() ?

查看:162
本文介绍了Windows 7 SP1如果使用SerialPort.GetPortNames()会出错?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.

我正在使用已安装SP1的Windows 7和MS Visual Studio 2010 Prof.

如果使用此代码,我只是发现了一个错误:

字符串[]端口= SerialPort.GetPortNames();

在.NET 2.0中,结果是:COM5i,COM6i,...
在.NET 3.5中,结果是:COM5i,COM6i,...
在.NET 4.0中,结果是:COM5,COM6,...

在Windows XP SP3中,结果始终是:COM5,COM6,...

Windows 7 SP1中有bug吗?

Hello.

I''m using Windows 7 with SP1 installed and MS Visual Studio 2010 Prof.

I just found a bug if I use this code :

string[] ports = SerialPort.GetPortNames();

in .NET 2.0, results are : COM5i, COM6i, ...
in .NET 3.5, results are : COM5i, COM6i, ...
in .NET 4.0, results are : COM5, COM6, ...

in Windows XP SP3, the results are always : COM5, COM6, ...

are there bugs in windows 7 SP1 ?

推荐答案

为什么在这里问?转到Microsoft Connect网站,然后在此处发布您的问题.
Why are you asking here? Go to the Microsoft Connect web site and post your issue there.


这篇关于Windows 7 SP1如果使用SerialPort.GetPortNames()会出错?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆