Date: Thu, 14 Nov 1996 09:22:58 +0200 (IST) From: Eli Zaretskii To: Tor Sjowall Cc: djgpp AT delorie DOT com Subject: Re: cwsdpmi bites Novell In-Reply-To: <3289c834.172103423@news.sn.no> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 13 Nov 1996, Tor Sjowall wrote: > I have observed something similar with Netware and Microtec compilers. > When running the Microtec compiler in a dos box in Windows, the > compiler will from time to time report that it's input files are > garbage. This only happens when I have other activity in Windows, such > as opening files or loading programs. Running the compiler again will > work. Running the same programs without the network does not fail. This seems like a different problem. The original poster didn't use Windows as far as I could understand. > As the Microtec compiler use the DOS/4G extender from Rational Systems > and not cwsdpmi, I suspect that the problem is with Netware or > highmem/emm386 or windows, and _not_ with the dos extender in djgpp. Not necessarily so, it might be something specific to DOS/4GW or to the Microtec compiler itself, or even with the specific version of Netware. There are some subtle aspects of file handling on Windows when you run several DOS boxes at once. In particular, several programs can have the same PID (which is the address of the PSP). Since the file handle of any given DOS program is referenced by its PSP, special precautions should be made to ensure that a correct handle table is used in the multi-tasking environment such as Windows. If the extender messes with undocumented DOS features in a way that fails to account for these aspects, you might have problems when several programs do file I/O from different DOS boxes.