delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/03/11/14:46:45

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
To: "Giovanni Spagnuolo" <spanish AT ieee DOT org>
CC: djgpp AT delorie DOT com
In-reply-to: <04c70d9d8683458d0087b99817f8ba00.76722@mygate.mailgate.org>
(spanish AT ieee DOT org)
Subject: Re: new[] and delete[]
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1020311130512 DOT 17471C-100000 AT is> <04c70d9d8683458d0087b99817f8ba00 DOT 76722 AT mygate DOT mailgate DOT org>
Message-Id: <E16kVgZ-0007jy-00@fencepost.gnu.org>
From: Eli Zaretskii <eliz AT gnu DOT org>
Date: Mon, 11 Mar 2002 14:42:19 -0500
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

> From: "Giovanni Spagnuolo" <spanish AT ieee DOT org>
> Newsgroups: comp.os.msdos.djgpp
> Date: Mon, 11 Mar 2002 15:16:13 +0000 (UTC)
> 
> I am working on a program that involves large sparse matrices (I am
> using sparselib++ for solving systems of linear equations).
> I have many problems with vectors and matrices allocated with new and
> disallocated with delete whenever I return from a function call.
> If I remove the suche delete instructions, the program continues but
> stops some lines afterwards, I suppose due to the lack of memory.

What do you mean by ``the program stops''?  Does it crash?  If so,
please post the crash message after running the SYMIFY program on it
(see sections 9.3 and 12.2 for more details about SYMIFY and the
related issues).

If you suspect shortage of memory, running the "go32-v2" program
without any arguments will print the amount of available memory
before the program starts.  You can then compare those numbers with
estimates of memory usage by your program.

> Now, I've downloaded the library mss to flush out the problem. What do
> you think about it?

If you suspect bugs with using allocated memory, MSS is a good
debugging tool.

- Raw text -


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