Just FYI: there don't appear to be any obvious loops in which SerClose could
hang. There are no loops *in* SerClose, one call to SysLibTblEntry (no loops),
two to MemPtrFree (wouldn't expect this to hang unless the heap were corrupted,
which shouldn't happen when Poser's watching it as closely as it does), and one
to SysSemaphoreDelete (no obvious loops, but who can tell for sure with that
source code...).  If SerClose is hanging, it's for some totally untrivial
reason.

-- Keith






"Dave Lippincott" <[EMAIL PROTECTED]> on 03/29/2000 11:02:17 AM

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

Sent by:  "Dave Lippincott" <[EMAIL PROTECTED]>


To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (Keith Rollin/HQ/3Com)
Subject:  Re: SerClose hangs




Could you send a little code, this doesn't seem to be a problem with an
obvious solution.

-----Original Message-----
From: Kent Quander <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Wednesday, March 29, 2000 12:33 PM
Subject: SerClose hangs


>I am using the serial port to print, with hardware
>handshaking at 9600.  Everything works wonderfully
>when something, e.g. Hyper Terminal, is attached to
>the port.  However, if nothing is attached, when it comes
>time to close the port, SerClose NEVER returns
>(until I plug something in).  Just before calling SerClose,
>I've tried a variety of things ... checking the status,
>flushing buffers, turning off handshaking, setting 0
>timeouts, etc ... all return with no errors, but no
>approach has had any noticeable effect.
>
>Behavior is identical whether using the emulator
>or the device itself  (tried Palm IIIx and Symbol 1500).
>
>Anyone have a clue?
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
>


--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palm.com/devzone/mailinglists.html






-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to