delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/13/19:19:44

Date: Tue, 13 Apr 1999 19:18:16 -0400
Message-Id: <199904132318.TAA05382@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <7f0g7a$qg7$1@nnrp1.dejanews.com> (message from Chris Jones on
Tue, 13 Apr 1999 22:24:49 GMT)
Subject: Re: SIGSEGV problem with DJGPP (deleting array)
References: <7f0g7a$qg7$1 AT nnrp1 DOT dejanews DOT com>
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

>         double *ptr2= new double [size+1];
>	  ...
>         delete [] ptr;

I hope you meant ptr2 here.

>         double *ptr=new double [size];
>	  ...
>         delete [] ptr2;

I hope you meant ptr here.

- Raw text -


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