A managed CommPortException

  • Thread starter Thread starter lsheung
  • Start date Start date
L

lsheung

Hi,

I'm using OpenNETCF implementation for Serial Port access. When I
deploy it as a console application, it works fine. However, when I
deploy it as a Pocket PC 2002 application, I got

A managed CommPortException
occurred at Application::Run+0x1a

CreateFile Failed: 55

Application::Run+0x1a
MainForm::Main+0x27

I checked the registry, /HKLM/HARDWARE/DEVICEMAP, COM4 exist. I also
ran the application as a console application and it works fine with
COM4.

- What is the best and easiest way to debug a Pocket PC application?
- Is there anyway I can have a console to input and output data? It is
not easy to display any information with an GUI only interface.

Any suggestions?

Thanks


Lok
 
[snip]
- What is the best and easiest way to debug a Pocket PC application?
- Is there anyway I can have a console to input and output data? It is
not easy to display any information with an GUI only interface.
You can debug the pocket pc app. on the target hardware by connecting it
to the PC and debugging from VS. Simply tell VS that you're going to
debug on a real device.

Greetings

Markus
 
For working around output to the console see this:
http://www.danielmoth.com/Blog/2004/11/debugwriteline.html

Cheers
Daniel
--
http://www.danielmoth.com/Blog/

Markus Humm said:
[snip]
- What is the best and easiest way to debug a Pocket PC application?
- Is there anyway I can have a console to input and output data? It is
not easy to display any information with an GUI only interface.
You can debug the pocket pc app. on the target hardware by connecting it
to the PC and debugging from VS. Simply tell VS that you're going to
debug on a real device.

Greetings

Markus
 
Back
Top