www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/24/23:49:50

From: gerbty AT indigo DOT ie (gerbty)
Newsgroups: comp.os.msdos.djgpp
Subject: A small problem
Date: 24 Oct 1996 17:30:10 GMT
Organization: Indigo Navigator User
Lines: 38
Message-ID: <54o932$f6h@niamh.indigo.ie>
Reply-To: gerbty AT indigo DOT ie
NNTP-Posting-Host: ts06-05.dublin.indigo.ie
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

			

Hi,

I'm having a few problems with disabling virtual memory under DJGPP.
Should I load cwsdpmi with "-s-", or use cwsdpr0 or set the flag in
crt0.h. Does the latter method sometimes fail? 

Anyway under dos 6.22 with emm386 (possibly even without emm386)
The following simple program fails if you run it a few times on an
amd 586x133 with 20 mb.The keyboard is locked on exit.


#include <stdio.h>
#include some other basic .h files

char large_array[1024*1024*4];

void main(void)
{

  system("mem /c /p");  // even a simple puts() here causes a crash sometimes

}


The size of the array seems to make little difference, Neither does increase-
ing the stack size help much.I'm really at a loss.Any help would be much
appreciated.









- Raw text -


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