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