Mail Archives: djgpp/2004/01/24/03:13:30
Hello Chris,
[RobH]
>>>I have built a DOS program with DJGPP to access a serial port.
>>>This program works fine under plain DOS (ic IBM PC/DOS 6.3).
>>>However when I boot from a bootable diskette created with
>>>WinXP and start the program it returns error 4 with a write()
>>>to the serial port.
Chris Giese wrote:
> Does it return error 4 from write() or from open()?
> I think DOS error 4 is "too many open files". Try increasing
> the FILES=nnn value in CONFIG.SYS
It is indeed the write() which returns error 4.
If '4' would mean "too many files" open() would fail, and since the mode
command, which is called before to set port speed, etc doesn't fail, it
can't be that problem.
I think the default is 20 files, but I tried it (config.sys didn't
contain a 'Files=" setting) and it didn't help.
Thanks for your attempt to help anyway!
Regards, Rob.
--
Rob Hamerling, Vianen, NL phone +31-347-322822
homepage: http://www.robh.nl/
- Raw text -