TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Yao
from: Will Honea
date: 1996-01-08 00:32:00
subject: Com port

PY>     Do you know if it's possible for an OS/2 app to close 
PY> the Comport held by another OS/2 app (though the app is not 
PY> using the COMport?)

Hope Peter sees this cause I can only comment on the case where the
second app is passed a handle which it can then close.  The only case I
ran into was a wierdy using SIO with a DOS program: PCPLUS (DOS) opens
a command line session with the console redirected to the modem; system
error ( DRIVE NOT READY, for example ) pops up, DOS window closes,
parent session closes.  No other DOS session can use the modem which is
reported to be 'in use' even when there are NO other sessions open -
period.  Opening an OS/2 comm program allows access to the port and
when you close the port by exiting, all the problems go away. 
Evidently, the close from the OS/2 session cleans up the open count or
some other counter that kept erroneously informing the DOS code that
the port was busy.

What are you trying to accomplish here, anyway?

___
 X KWQ/2 1.2i X Us Old Farts don't have to be politically correct.

--- Maximus/2 2.02
* Origin: The CS-DEPOT (1:128/58)
SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 128/58 1320 1300 1 190 3615/50 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.