static extern void KM_dotnet_Interop_CoordMotion_SetArcFeedCallback(IntPtr handle, KM_CoordMotionArcFeedSixAxisHandler handler);
Example #2
0
 static extern void KM_dotnet_Interop_CoordMotion_SetArcFeedCallback(IntPtr handle, KM_CoordMotionArcFeedSixAxisHandler handler);
Example #3
0
 /// <summary>
 /// Sets the internal Arc Feed callback for the CoordMotion.cpp object
 /// Separate delegate for this callback prevents the Garbage Collector from releasing the 
 /// unmanaged function pointer from being destroyed
 /// </summary>
 private void SetArcFeedCallback()
 {
     try
     {
         CoordMotionArcFeedHandler = new KM_CoordMotionArcFeedSixAxisHandler(OnCoordMotionArcFeed);
         KM_dotnet_Interop_CoordMotion_SetArcFeedCallback(_InstanceHandle, CoordMotionArcFeedHandler);
     }
     catch (DllNotFoundException e)
     {
         throw new DMException(this, e, String.Format("Dll Not Found Exception thrown :  Caller - [{0}] :: Member - [{1}]",
             this.ToString(), "SetArcFeedCallback"));
     }
     catch (EntryPointNotFoundException e)
     {
         throw new DMException(this, e, String.Format("Entry Point Not Found Exception thrown :  Caller - [{0}] :: Member - [{1}]",
            this.ToString(), "SetArcFeedCallback"));
     }
     catch (Exception e)
     {
         throw new DMException(this, e, String.Format("General Exception thrown :  Caller - [{0}] :: Member - [{1}]",
           this.ToString(), "SetArcFeedCallback"));
     }
 }