X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-Id: <5.0.2.1.0.20020411161942.00bd1eb0@pop.mail.yahoo.com> X-Sender: jlsgarrido AT pop DOT mail DOT yahoo DOT com X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Thu, 11 Apr 2002 16:25:50 -0500 To: djgpp AT delorie DOT com From: =?iso-8859-1?Q?=22Jos=E9_L=2E_S=E1nchez_Garrido=22?= Subject: Re: New DJGPP hogs memory (was: I need help) In-Reply-To: <2427-Thu11Apr2002214254+0300-eliz@is.elta.co.il> References: <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20020410122845 DOT 00bcbbd8 AT pop DOT mail DOT yahoo DOT com> <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20020410122845 DOT 00bcbbd8 AT pop DOT mail DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 At 21:42 11/04/2002 +0300, you wrote: > > Date: Wed, 10 Apr 2002 12:59:36 -0600 > > From: =?iso-8859-1?Q?=22Jos=E9_L=2E_S=E1nchez_Garrido=22?= > > > > > > When download and install gcc 2.95 + djdev203, old programs originally > > compiled and linked with gcc 2.82 + djdev201 hoggs memory. > >Please post a complete short test program that can be used to >reproduce and investigate this problem. -------------------cut here----------------------------------- #include #include typedef struct { char af[10]; char name[10]; } record; record **dt, *d; int main (void) { int count; for(count=0; count<200000L; count++){ dt=(record **)realloc(dt, (count+1)*sizeof(record *)); d=dt[count]; d=(record *)calloc(10, sizeof(record)); } return(0); } ------------------cut here--------------------------------------- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com