MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

mathlink loopback question

  • To: mathgroup at
  • Subject: [mg29934] mathlink loopback question
  • From: Mario Drobics <mario.drobics at>
  • Date: Thu, 19 Jul 2001 03:56:59 -0400 (EDT)
  • Organization: Software Competence Center Hagenberg
  • Sender: owner-wri-mathgroup at

 When I have a lot of elements (1,000,000 integers) in a Loopback link and 
 finally want to move its contents to the stdlink using 
 MLTransferExpression(stdlink, loopback) it takes very long (about 30sec!) 
 (but doesn't stress the CPU). Filling the Loopback, however, goes on the 
 fly. I wonder why this is so, as it should be nothing more then some kind 
 of pointer movement or memory copy (and need not more time than filling
 the loopback link)?
 I also wonder, how I can free the memory allocated temporarily, 
 MLClose(loopback) seems not to do the job.
 (I am using Mathematica 4.1, with MathLink for C++ and gcc 2.95.4 on a 
 Linux 2.2 system)
 -mario drobics-
 Mario Drobics, MSc.
 Software Competence Center Hagenberg GmbH
 Softwarepark Hagenberg, Hauptstrasze 99
 A-4232 Hagenberg, Austria 
 Tel.:   +43 7236 3343 831
 Fax:    +43 7236 3343 888
 Mail:   mario.drobics at

  • Prev by Date: Re: Admissible values for variables
  • Next by Date: Re: Integrate[1/x, x] ??
  • Previous by thread: Re: password problem
  • Next by thread: Non-Integer HarmonicNumbers?