MathGroup Archive 1998

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

Search the Archive

Re: Simple MathLink question


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