X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f To: "Giovanni Spagnuolo" 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: <04c70d9d8683458d0087b99817f8ba00 DOT 76722 AT mygate DOT mailgate DOT org> Message-Id: From: Eli Zaretskii 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 Precedence: bulk > From: "Giovanni Spagnuolo" > 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.