Path: chuka.playstation.co.uk!news From: "Peter Armstrong" Newsgroups: scee.yaroze.freetalk.english Subject: Re: malloc... free??? Date: Thu, 31 Oct 2002 18:38:40 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 50 Message-ID: References: NNTP-Posting-Host: modem-3491.elephant.dialup.pol.co.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 I'm not sure what that would be, is the program hanging at the malloc call? To avoid repeated calls you could either create a large global array of ball structures or allocate one large chunk of memory at the start of the program. Also check your packet space, you'll need ~15K for 600 sprites for each buffer. Peter "Andrew Murray" wrote in message news:appaj2$j21@www.netyaroze-europe.com... > I have tried out malloc now and the problem is when too much memory is > assigned. I have several balls of the screen they are contained in a linked > list and they can be added to or removed, I get to around 600 and the yaroze > crashes. The size of my structure isn't that big. All i have in it is a > GsSprite struct, an x and y velocity (ints), a pointer to the next ball and > the last ball collided with. I havn't worked out its size yet but surely it > should'nt crash the yaroze when I add as few as 600 balls, I don't know, I'm > a dunce really... > > Max > > "Andrew Murray" wrote in message > news:ap9820$5pn5@www.netyaroze-europe.com... > > I hear that the malloc and free functions in the current itteration of the > > Yaroze libs are not functioning 100% as they should be... > > > > Has anyone heard of this problem or how to fix it, i.e. an updated > malloc.h > > and/or libps.h??? > > I downloaded the libps.zip that is on the yaroze site but it didn't claim > to > > fix this supposed problem. > > > > Thanks > > Max > > > > > >