Page 1 of 1

Unable to find "KM_dotnet_Interop_MainStatus_GetStatus" in "KMotion_dotnet_Interop.dll" Visual C# 2022

Posted: Thu Jun 19, 2025 10:50 am
by cadline
Hi everybody, I have a problem using "KMotion_dotnet_Interop.dll" of KMotion5.4.0 in Visual C# 2022.
It seems impossibile to reference all dll in Visual projects...the unique dll that can be referenced in my case is "KMotion_dotNet.dll" but this also don't work and the program display continuously the following error: "Unable to find any entry point with name ''KMotion_dotnet_Interop_MainStatus_GetStatus in DLL "KMotion_dotnet_Interop.dll"".
Visual 2022 compile this program regularly, so it seems a DLL problem, i don't know.
Thank you!

Re: Unable to find "KM_dotnet_Interop_MainStatus_GetStatus" in "KMotion_dotnet_Interop.dll" Visual C# 2022

Posted: Mon Jun 23, 2025 12:27 am
by TomKerekes
Hi,

Are you calling that function from your code?

That function is normally used internally and the method was changed in Version 5.0.7 to support Kogna and now passes a single binary block of status rather than all the status fields individually?

What Version was it working before?

The PureC example shows the new method of calling it.

Re: Unable to find "KM_dotnet_Interop_MainStatus_GetStatus" in "KMotion_dotnet_Interop.dll" Visual C# 2022

Posted: Wed Jun 25, 2025 10:09 am
by cadline
Hi Tom,
No, i'm not calling that function from my code.
The previous version was working is the 435h.
Is it possibile to downgrade KFlop firmware from 5.4.0 to 435h (KFlop Rev 1.3)?
Thanks.
Tiziano F.

Re: Unable to find "KM_dotnet_Interop_MainStatus_GetStatus" in "KMotion_dotnet_Interop.dll" Visual C# 2022

Posted: Wed Jun 25, 2025 5:31 pm
by TomKerekes
Hi Tiziano,

You would have to tell us exactly what you are doing. The SimpleFormsCS C# example uses that function and works correctly. Does \KMotion\Release\SimpleFormsCS.exe run correctly?

To flash an earlier version of Firmware use Flash New Version or Flash Recovery.