www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/16/20:02:04

From: damon AT WRONG DOT redshift DOT com (Damon Casale)
Newsgroups: comp.os.msdos.djgpp
Subject: DJGPP memory allocation algorithm?
Date: Sat, 17 Mar 2001 01:00:02 GMT
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <3ab2b577.347408@news.redshift.com>
X-Newsreader: Forte Free Agent 1.21/32.243
X-Complaints-To: newsabuse AT supernews DOT com
Lines: 20
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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?  I'm allocating about 50 bytes 17,000-odd
times over.  Would this cause a problem in the allocation code?

I'm going to wait until Monday to post the GPF register dump, because
I'd like to trace it down to the exact point where the error happens
first.  :-)

Thanks in advance...

Damon Casale, damon AT WRONG DOT redshift DOT com (remove the obvious)
MALLOC 2:  The Adventure of Link.  ;-p

- Raw text -


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