The serial port is implicitly closed when the serial library is unloaded
(even if the original app forgets to close it).  The only case I know of
where the port may still be in use is with a keyboard driver.  In that case,
you will need to find out how to tell the specific driver to release the
port (if possible). Otherwise your just out of luck until you reset or
manually unload the driver.
Do you have a specific case where the serial port is already in use and
locking you out?  Or is just some speculative code to prevent a possible
problem?


----- Original Message -----
From: "Nesselhauf, John" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, June 14, 2001 7:43 AM
Subject: How to close serial port on application startup


> Hi,
>
> I want to check to see if the serial port is open when my
> application starts up, and if it is, close it. Does anybody
> have a code sample of how this is done?
>
> Thank You,
> John.
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to