mspocketpc.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bizarre error message from SerialPort.open

 
Post new topic   Reply to topic    mspocketpc.org Forum Index -> Developers
Author Message
Rof



Joined: 07 Feb 2008
Posts: 3

PostPosted: Tue Feb 26, 2008 9:08 am    Post subject: Bizarre error message from SerialPort.open Reply with quote

I have an app that talks to COM8 (the "Outgoing" Bluetooth port on a
PDA. Periodically, when it has previously been in use, it seems, I get
the error

"The port 'COM8:' does not exist."

on sport.open().

Apart from the fact that COM8 clearly does exist, where does "COM8:"
come from? I definitely defined it as "sport.PortName = "COM8"" - so
(a) why does it think it doesn't exist, and (b) where does that colon
in the port name come from?

Peter Royle

Archived from group: microsoft>public>pocketpc>developer
Back to top
View user's profile Send private message
Dick Grier



Joined: 15 Aug 2007
Posts: 171

PostPosted: Tue Feb 26, 2008 3:27 pm    Post subject: Re: Bizarre error message from SerialPort.open Reply with quote

Hi,

When the CreateFile API call is issued, the colon is added (the API uses
it).

I suspect that the BT driver is at fault. BT implementation seem to be a
"work in progress." I doubt that there is a sofware remedy.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Back to top
View user's profile Send private message
Henryk Birecki



Joined: 15 Aug 2007
Posts: 60

PostPosted: Tue Feb 26, 2008 10:34 pm    Post subject: Re: Bizarre error message from SerialPort.open Reply with quote

Rof wrote:

>Apart from the fact that COM8 clearly does exist, where does "COM8:"
>come from? I definitely defined it as "sport.PortName = "COM8"" - so

This may well be your problem. I am using C, C++ only, but in my
programs I do have to add a colon to the name for WinCE devices. Try
sport.PortName = "COM8:"

Cheers,
Henryk Birecki

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
fatal error RC1015: cannot open include file 'afxres.h' Hi everyone, I would like to compile an Embedded Visual C++ program but it doesn't work. this message appear when I compile : fatal error RC1015: cannot open include file 'afxres.h', knowing that afxres.h exit in include file and the path to header files

Error Message when trying to install Windows Hi, I am trying to install the Windows Mobile 5.0 Pocket PC SDK.MSI program and when I run the file, I receive the following message - "The installation package could not be opened. Verify that the package exists...". My system has XP sp 2, and I have V

error message on ipaq download This question has probably been asked a million times, and has a simple solution, but im going to ask it any way im developing the ipaq(SA1110) with embedded visual tools, and the 2002 ppc. When i attempt to download my program to the processor the conne

save recurring appointment error message hi there, i got the following error while saving a recurring appointment with ppc winm5 calendar. for my own calendar app, i want to know all possible error messages in appointment recurrence, so that i can check against them before save. what other error

error message "<app-name> is not a valid Windows CE applicat My application is developed for Win CE 5.0 PDA, processor PXA255 My application will run most of the time. but some time it will give error message " is not a valid Windows CE application". this problem will disappear only when you restart the
Post new topic   Reply to topic    mspocketpc.org Forum Index -> Developers All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group