delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/01/23/22:31:13

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: NoEmailAds AT execpc DOT com (Chris Giese)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: error 4 with write to serial port
Date: Sat, 24 Jan 2004 03:14:59 GMT
Organization: PROPULSION GROUP
Message-ID: <4011e2d0.2230942@news.voyager.net>
References: <40101D96 DOT 8070103 AT hccnet DOT nl> <irl110tsp1u83tm88stkb2ntmdqlpn5m7p AT 4ax DOT com>
X-Newsreader: Forte Free Agent 1.21/32.243
X-Complaints-To: abuse AT supernews DOT com
Lines: 12
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Andrew Cottrell <andspam at swiftdsl dot com dot au> wrote:

>>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.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019