Re: Mathlink memory hog
- To: mathgroup at smc.vnet.net
- Subject: [mg49430] Re: Mathlink memory hog
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Mon, 19 Jul 2004 07:46:32 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <cdb1g0$aio$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, Mathematica 5 has an excelent sparse matrix solution function and you should use it. I expect that you memory problem has nothing to dow with MathLink or Mathematica -- it's your code that produce the memory blow up Regards Jens "Lawrence A. Walker Jr." wrote: > > Help! My Mathlink program eats up too much memory! > > I am currently having memory problems when trying to run a Mathlink'd C > program in Mathematica v. 5. I use Mathlink to call an external C > program to solve a large sparse matrix. The problem I am having is that > according to the Task Manager, the external C code uses a lot of memory > (mostly virtual memory), >500MB! Based on the matrix size 73x73, I > expect the code to use far less memory. > > I also searched the net for similar problems. I found one in which the > user had to clear a cache directory. I can't find a cache directory. > > How do I keep my Mathlink C program from using so much memory? > > Thanks, > Lawrence