static extern void KM_dotnet_Interop_GCodeInterpreter_Set_G_COMPLETE_CALLBACK(IntPtr handle, KM_GCodeInterpreterCompleteHandler handler);
/// <summary> /// Sets the internal Interpreter Complete callback for the GcodeInterpreter.cpp object /// Separate delegate for this callback prevents the Garbage Collector from releasing the /// unmanaged function pointer from being destroyed /// </summary> private void Set_G_COMPLETE_CALLBACK() { try { InterpreterCompletedHandler = new KM_GCodeInterpreterCompleteHandler(OnInterpreterCompleted); KM_dotnet_Interop_GCodeInterpreter_Set_G_COMPLETE_CALLBACK(_InstanceHandle, InterpreterCompletedHandler); } catch (DllNotFoundException e) { throw new DMException(this, e, String.Format("Dll Not Found Exception thrown : Caller - [{0}] :: Member - [{1}]", this.ToString(), "Set_G_COMPLETE_CALLBACK")); } catch (EntryPointNotFoundException e) { throw new DMException(this, e, String.Format("Entry Point Not Found Exception thrown : Caller - [{0}] :: Member - [{1}]", this.ToString(), "Set_G_COMPLETE_CALLBACK")); } catch (Exception e) { throw new DMException(this, e, String.Format("General Exception thrown : Caller - [{0}] :: Member - [{1}]", this.ToString(), "Set_G_COMPLETE_CALLBACK")); } }