Example #1
0
 /// <summary>
 /// This is what causes .NET to quit when user selects "Kill linked program" from <i>Mathematica</i>'s Interrupt dialog.
 /// </summary>
 /// <param name="msg"></param>
 ///
 public static void terminateMsgHandler(MathLinkMessage msg)
 {
     if (msg == MathLinkMessage.Terminate)
     {
         readerThread.Abort();
     }
 }
Example #2
0
 // This MessageHandler method supports the ability for code called from M to call ml.WasInterrupted.
 private void interruptDetector(MathLinkMessage msg)
 {
     WasInterrupted = (msg == MathLinkMessage.Abort || msg == MathLinkMessage.Interrupt);
 }
Example #3
0
 public override void PutMessage(MathLinkMessage msg)
 {
     impl.PutMessage(msg);
 }
Example #4
0
 public abstract void PutMessage(MathLinkMessage msg);