Could someone name any reason why a DosRead() from a serial
port will return error code 5 (access denied)? It's listed
as possible error code but i would connect it with
DosOpen().
Could someone name any reason why a DosRead() from a serial port will return error code 5 (access denied) ? It's listed as possible error
code but i would connect it with DosOpen().
Could someone name any reason why a DosRead() from a serial port
will return error code 5 (access denied)? It's listed as
possible error code but i would connect it with DosOpen().
This can fail if the port's assigned IRQ is in use by something
else, for example, with the default installation, COM1 and COM3
share the same interrupt, so if you have a mouse on COM1, you
can't open COM3. Same for COM2 and COM4.
Could someone name any reason why a DosRead() from a serial port will return error code 5 (access denied)? It's listed as possible error
code but i would connect it with DosOpen().
I just have no clue why DosRead could fail with the error (except when
the driver is buggy (which it is anyway :-)),
Could someone name any reason why a DosRead() from a serial port
will return error code 5 (access denied) ? It's listed as
possible error code but i would connect it with DosOpen().
The only reason I could imagine is that some other program is
accessing the port at the same time and that for some reason OS/2
cannot handle the priorities between the two programs fighting
for the com port.
If you did not have access to the com port at all (for example my
dos boxes by default do not have access to all com ports), the
DosOpen() would fail first, so you would never reach the
DosRead() stage (if my understanding is correct).
It would be helpful if the person who has the problem can give
you a list of all other programs running at the same time,
specially those susceptible of accessing the com port.
Disclaimer - These opiini^H^H damn! ^H^H ^Q ^[ .... :w
:q :wq :wq! ^d X ^? exit X Q ^C ^? :quitbye CtrlAltDel ~~q
:~q logout save/quit :!QUIT ^[zz ^[ZZZZZZ ^H man vi ^ ^L
^[c ^# ^E ^X ^I ^T ? help helpquit ^D ^d man help ^C
^c help ?Quit ?q CtrlShftDel"Hey, what does this button d...
I hope you get my reply, because I don't seem to receive anyMhmm, OS2PROG is the only internation fidonet echo i read regulary. And i think i got all msgs.
replies to my messages in any of the international OS/2 areas
lately. :-(
Monday 12 June 2000 20:05, Vitus Jensen wrote to all:
Could someone name any reason why a DosRead() from a serial port
will return error code 5 (access denied)? It's listed as
possible error code but i would connect it with DosOpen().
Has the driver or another process exclusively opened the serial
port at the time your code tries to get access to the serial
port, or does your code exclusively (try to) open the serial port?
I just have no clue why DosRead could fail with the error (except
when the driver is buggy (which it is anyway :-)),
Is the developer of the serial driver capable to realise the
possibility he made a mistake in his code?
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,028 |
Nodes: | 17 (0 / 17) |
Uptime: | 181:05:02 |
Calls: | 503,706 |
Calls today: | 9 |
Files: | 158,903 |
D/L today: |
13,765 files (4,212M bytes) |
Messages: | 444,341 |
Posted today: | 2 |