From: Richard Wooding Newsgroups: comp.os.msdos.djgpp Subject: Re: Write Protection??? Date: Fri, 30 Oct 1998 18:52:34 +0200 Organization: University of Cape Town Lines: 24 Message-ID: <3639EED2.6BCE@webmail.co.za> References: NNTP-Posting-Host: pcc003.bxtslc.uct.ac.za Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com snadrel AT atlas DOT uvigo DOT es wrote: > > I tried to run my program in a computer that has the hard disk (C:) > write-protected. The system told me that it cannot write in C:, why? > I don't use disk/file routines! > > The compures has a tiny .COM program that disables any attempt for > writting in C:, and its loaded in the AUTOEXEC.BAT. > Can I run my program (modifying it for these cases) in that computer? > > ---------------------- > snadrel AT atlas DOT uvigo DOT es > DPMI is probably setting up a swapfile (like CWSDPMI, Windows or whatever you may us), since DJGPP compiles to 4GB 32-bit flat memory, which uses the Intel chipsets paging and segmentation for virtual memory. (Typically on the harddisk) see if you can get your DPMI settings to disable harddisk swapping, this will obviously give you less virtual memory. Richard Wooding bull DOT wooding AT webmail DOT co DOT za rwooding AT mindless DOT com wdnric02 AT scilab DOT uct DOT ac DOT za