Date: Sat, 17 Mar 2001 09:54:25 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <3791-Sat17Mar2001095425+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 In-reply-to: <3ab2b577.347408@news.redshift.com> (damon@WRONG.redshift.com) Subject: Re: DJGPP memory allocation algorithm? References: <3ab2b577 DOT 347408 AT news DOT redshift DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: damon AT WRONG DOT redshift DOT com (Damon Casale) > Newsgroups: comp.os.msdos.djgpp > Date: Sat, 17 Mar 2001 01:00:02 GMT > > I'm having a similar problem to what I had before -- I get a General > Protection Fault while attempting to create a very long linked list. > The "add a new element to the list" routine is iterative now, whereas > before it was recursive. I'm just using 17,000-odd file/data elements > this time around, whereas before I was only using about 8000. > > Before I go into the specifics of what the error is, can I ask the > DJGPP gurus if there's an internal limitation on the _number_ of > allocations one can do? No, not in the DJGPP library. > I'm allocating about 50 bytes 17,000-odd > times over. Would this cause a problem in the allocation code? If you are running on plain DOS with CWSDPMI, you might be hitting the CWSDPMI limit on its internal heap. See section 15.4 of the DJGPP FAQ for more about this.