.Net KM_Controller.Compile() error
Posted: Fri Nov 16, 2018 7:22 pm
I'm trying to compile c code file using .Net KM_Controller.Compile() method. I'm getting the following error:
The issue doesn't seem to be caused by a particular .c file (tried few of them - same result). The same files are being compiled/executed from KMotionCNC without any issues.
Tried with KMotion versions 4.3.3 and 4.3.4 - same result.
Would appreciate any help. Thanks.
Code: Select all
Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.String..ctor(SByte* value)
at System.StubHelpers.CSTRMarshaler.ConvertToManaged(IntPtr cstr)
at KMotion_dotNet.KM_Controller.KM_dotnet_Interop_Compile(IntPtr handle, Int32 boardtype, Int32 threadID, String name, String& outfile, String& error, Int32 _ErrorLength)
Tried with KMotion versions 4.3.3 and 4.3.4 - same result.
Would appreciate any help. Thanks.