Mail Archives: djgpp/2002/03/11/14:46:45
> 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 -