Path: chuka.playstation.co.uk!news From: James Russell Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: Memory allocation probs... Date: Tue, 28 Oct 1997 08:36:25 +1300 Organization: Peace Computers NZ Ltd Lines: 23 Message-ID: <3454ED39.794B@peace.co.nz> References: <34551BB5.58BA@dial.pipex.com> <3454c596.21265918@news.playstation.co.uk> NNTP-Posting-Host: intro.peace.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0Gold (X11; I; IRIX 6.2 IP22) > >Does anyone know if there's a problem with the GNU library memory > >allocation functions, specifically calloc()? All seems to work > >fine for normal situations, but if I call calloc() - as shown > >below - with numSprites set at a ludicrous value of say, 20000, > >the 'after...' message never gets displayed. This leads me to > >believe that, in this situation, calloc() never returns (not > >even with a NULL pointer) and the whole system hangs :( You said you were linking at 80100000 which is quite high - I link at 8009000 which is just above the libraries (AFAIK). Since the Sony libs don't know the position and extent of your code, they could be allocating memory that overlaps your code - if it clears the memory after allocating it, you've just wiped out all your code! J -- ==PEACE COMPUTERS ==James.Russell@peace.co.nz - 64(9)3730400 -Fax 64(9)3730401 Diplomacy is saying "nice doggy" until you find a rock.