Date: Sun, 15 Jun 1997 16:50:03 +0300 (IDT) From: Eli Zaretskii To: Cory Bloyd 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.