www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/21/04:34:08

Date: Tue, 21 Jul 1998 11:32:41 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Ching-kuang Kuo <ckuo AT ic DOT sunysb DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: help! vitural memory
In-Reply-To: <Pine.SOL.3.96.980720171314.794B-100000@sparky>
Message-ID: <Pine.SUN.3.91.980721113205.6992S-100000@is>
MIME-Version: 1.0

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.

- Raw text -


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