المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Serial Ports problem



C# Programming
06-16-2009, 01:27 PM
hi all, i've encountered some mistake with serial port developement.

I use the compact framework 2.0 with visual studio 2008 pro.

I've developped a simple application which do a serialprt.open() on the port COM1.
(i've tested with COM2, COM3 and COM4 too but same exception).

When I deploy the project with visual studio on my Windows Embedded CE 6.0 device all works fine.

But when i reboot the panel pc (an AFL-07A-LX) and when i try to open a COM port I have an exception :

Exception : IOException
Inner Exception : null
Stack Trace :

at System.IO.Port.SerialStream.WinIOError()
at System.IO.Port.SerialStream.CheckResult()
at System.IO.Port.SerialStream.setBufferSizes()
at System.IO.Port.SerialStream.Open()


I'm searching for the solution from 2 days and i've found nothing at allhttp://www.barakasoft.com/script/Forums/Images/smiley_frown.gif

N.B : i'm french so don't take care to my bad english.