KMotion_dotNet.KM_CoordMotion.SetArcFeedCallback C# (CSharp) Method

SetArcFeedCallback() private method

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
private SetArcFeedCallback ( ) : void
return void
        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"));
            }
        }
KM_CoordMotion