delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/15/09:53:28

Date: Sun, 15 Jun 1997 16:50:03 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Cory Bloyd <bloydcg AT cs DOT purdue DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: "typePointer = new type[n] ;" SIGSEG's in malloc?
In-Reply-To: <339F4082.4F93@cs.purdue.edu>
Message-ID: <Pine.SUN.3.91.970615164637.16198B-100000@is>
MIME-Version: 1.0

On Wed, 11 Jun 1997, Cory Bloyd wrote:

> I'm writing a program to parse a binary file involving alot of dynamic
> allocation (but no deallocation required `til the end).  All access to
> the allocated arrays are carefully bounds checked.  About midway through
> the file "new" bombs on me.  It always dies in the same place, which is

Are you running on plain DOS (no Windows) and using CWSDPMI as your DPMI 
host?  If so, please tell approximately how much memory does your program 
allocate and in how many chunks.  Some related info is in the DJGPP FAQ 
list (v2/faq210b.zip from the same place you get DJGPP), section 15.4, 
which also suggests a way to work around such problems.

- Raw text -


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