Date: Tue, 21 Jul 1998 11:32:41 +0300 (IDT) From: Eli Zaretskii To: Ching-kuang Kuo cc: djgpp AT delorie DOT com Subject: Re: help! vitural memory In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 20 Jul 1998, Ching-kuang Kuo wrote: > I have a simple c program for simulation but use lots of arrays. I > figure out that the program crashes because of incifficnent memory. Even if it is true that you don't have enough memory, a program shouldn't crash. Your code should test the values returned by malloc and print an error message if it returns a NULL pointer. > I follow the FAQs and change the MS-DOS memory to the maximum value 65535 > but still not enough. I personally believe the program needs 100 M byte. If you run on Windows 9X, you can't. 64MB is the maximum amount Windows will let a DJGPP program use. > Besides, I got cwsdpmi from internet but don't know how to use it, > could it be useful? CWSDPMI can only be used on plain DOS, ouside Windows. If you can do that, then it will let you use as much as 512MB of memory, if you have enough RAM and sisk space.