Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: NET/Link return array from C++

  • To: mathgroup at
  • Subject: [mg61150] Re: NET/Link return array from C++
  • From: "Lasr Schouw" <schouw at>
  • Date: Tue, 11 Oct 2005 03:22:22 -0400 (EDT)
  • References: <di2m5s$8d6$><di5915$3bl$>
  • Sender: owner-wri-mathgroup at


What do you mean?

In the meanwhile I got some help from Wolfram support. So it works now.
void Test123(double x[], int size, double result[])
      for (long i = 0 ; i < size; i ++) result[i] = 100.;
TEST123 = DefineDLLFunction["Test123", strFilename, "Void",
{"double[]", "long", "double[]"}];

input1=MakeNETObject[{1., 2., 3.}];
res=MakeNETObject[{0.0,0.0, 0.0}];

TEST123[input1, 3, res]


Then I tried to so the same with 1 mio numbers and can see that the
perfmance is really slow in the MakeNETObject and NETObjectToExpression
parts. So the NETLink does not solve my problem since it still has
performance problems... except of I can do this part better somehow.

Lars Schouw
Tokyo, Japan

  • Prev by Date: Re: surface intersection
  • Next by Date: Mathematica output that slow???
  • Previous by thread: Re: NET/Link return array from C++
  • Next by thread: Re: NET/Link return array from C++