HighTechTalks DotNet Forums  

Re: Open ports with Windows Mobile 6

Dotnet Framework (Compact Framework) microsoft.public.dotnet.framework.compactframework


Discuss Re: Open ports with Windows Mobile 6 in the Dotnet Framework (Compact Framework) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ginny Caughey [MVP]
 
Posts: n/a

Default Re: Open ports with Windows Mobile 6 - 10-09-2007 , 07:40 AM






The easiest way to read from a serial port in a managed code app is to use
the Ports.IO.Serial class. Certainly you can use CreateFile, ReadFile, etc.,
but the Serial class has already done the work including managing the worker
thread.

--
Ginny Caughey
Device Application Development MVP


"Julián Sanz García" <jsanz (AT) gerionte (DOT) com> wrote

Quote:
Hi,

I am developping a demo application that only open a port with CreateFile
method and read port data with ReadFile method.
When i open the com port, a read thread start. This thread has a while
loop which has the ReadFile call. My application fails when this loop try
to make the 5 iteration to ReadFile method call.
I think the exception throws is an access violation exception (0xc0000005)

Can anybody help me?

Thanks



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.