A managed CommPortException

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
 
M

Markus Humm

[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
 
D

Daniel Moth

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top