delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/26/08:45:28

Xref: news2.mv.net comp.os.msdos.djgpp:6434
From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: CWSDPMI & small memory blocks
Date: Thu, 25 Jul 1996 09:17:59 CDT
Organization: Rice University, Houston, Texas
Lines: 13
Message-ID: <31f78217.sandmann@clio.rice.edu>
References: <199607240101 DOT VAA02683 AT fcshome DOT stoneham DOT ma DOT us>
Reply-To: sandmann AT clio DOT rice DOT edu
NNTP-Posting-Host: clio.rice.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> > but when I use smaller blocks, the program has a sigsev
> > thingy and dies (under DOS and CWSDPMI, but not WIndows).  
> This is, so I'm told, a bug in CWSDPMI (or maybe it's a feature ;-), where
> a large number of relatively small allocations causesit to run out of heap

While I increased the limit before badness happens in r2, I forgot to fix
the problem itself (which was not checking the return of malloc).
This will be mostly fixed in r3 (mostly - since HW interrupts/RMCB's 
reflected from real mode still may consume stack which might overwrite
the stored memory zone info in rare cases).

As a workaround, run cwsparam and increase the paragraphs of extra heap
to 256 (or more) as needed.

- Raw text -


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