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

Moderators: TomKerekes, dynomotion

Post Reply
cadline
Posts: 9
Joined: Sat Mar 31, 2018 3:26 pm

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

Post by cadline » Thu Jun 19, 2025 10:50 am

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!

User avatar
TomKerekes
Posts: 2786
Joined: Mon Dec 04, 2017 1:49 am

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

Post by TomKerekes » Mon Jun 23, 2025 12:27 am

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.
Regards,

Tom Kerekes
Dynomotion, Inc.

cadline
Posts: 9
Joined: Sat Mar 31, 2018 3:26 pm

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

Post by cadline » Wed Jun 25, 2025 10:09 am

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.

User avatar
TomKerekes
Posts: 2786
Joined: Mon Dec 04, 2017 1:49 am

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

Post by TomKerekes » Wed Jun 25, 2025 5:31 pm

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.
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply