delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/19/19:54:21

From: j DOT aldrich6 AT genie DOT com
Message-Id: <199607192348.AA120690086@relay1.geis.com>
Date: Fri, 19 Jul 96 23:34:00 UTC 0000
To: djgpp AT delorie DOT com
Mime-Version: 1.0
Subject: Re: go-32 and Linux DOSEMU

Reply to message 3309781    from FREDEX AT FCSHOM on 07/18/96  9:33PM


>It must really be a bug--I would expect malloc to return me a NULL
>pointer when it can't allocate any more memory, rather than a pointer
>which when dereferenced causes an exception.

Well, yes, it is a bug, but the problem isn't that you're running out of
memory.
CWSDPMI version 1's internal heap is insufficent to handle an extremely
large number of malloc() requests.  When it runs out of its internal heap,
it dies messily.  The key isn't the size of your memory requests; it's how
many you make.  The new version of CWSDPMI fixes this problem by
1) defining a 6K heap instead of a 4K heap; 2) allowing you to add even
more space via the CWSPARAM program.

John

- Raw text -


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