MathGroup Archive 1998

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

Search the Archive

Re: Simple MathLink question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg14818] Re: Simple MathLink question
  • From: miyaji at taiiku.tsukuba.ac.jp (Chikara MIYAJI)
  • Date: Wed, 18 Nov 1998 01:29:22 -0500
  • Organization: University of Tsukuba
  • References: <7257mf$89d@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <7257mf$89d at smc.vnet.net>, Jim McGuire <jimm at opticalres.com>
wrote:

It seems to me buffering problem, because MLReady doesn't flush the
outgoing data.

Add MLFlush(stdlink); after MLEndPacket.

Your code:
>MLPutFunction(stdlink,"EvaluatePacket",1);
>   MLPutFunction(stdlink,"Get",1);
>   MLPutString(stdlink,"\"D:\\jimm\\svgcn018\\MathLink_USERSUR.mx\"");
>MLEndPacket(stdlink);   
>printf("MLReady = %d\n",MLReady(stdlink));

Modified version:
MLPutFunction(stdlink,"EvaluatePacket",1);
   MLPutFunction(stdlink,"Get",1);
   MLPutString(stdlink,"\"D:\\jimm\\svgcn018\\MathLink_USERSUR.mx\"");
MLEndPacket(stdlink);   
MLFlush(stdlink);
printf("MLReady = %d\n",MLReady(stdlink));


  • Prev by Date: Re: Convert expr from CForm to InputFrom
  • Next by Date: Mechanical Systems Question
  • Previous by thread: Re: Simple MathLink question
  • Next by thread: More Page Breaks