Getting parameter enum values with SDK in C#

I’m trying to retrieve the enum values of a parameter using the the EnumParameter.GetValues(ref SortedDictionary<string,int> listValues) method but it does not work.
Here is an extract of my code

var userSet = camera.CurrentUserSet();
// get first parameter of type _Enum
var parameter = userSet.GetAvailableParameters().First(x => x.GetParameterType() == Parameter.Type._Enum);
// try to get the enum values for this parameter
var enumParameter = EnumParameter.ConvertFromParameter(parameter);
SortedDictionary<string, int> valueList = new SortedDictionary<string, int>();
enumParameter.GetValues(ref valueList);

I get the following exception
System.EntryPointNotFoundException : ‘Can’t find entry point ‘enumParameterGetEnumValuesListCount’ into DLL ‘MechEyeApiWrapper’.’

Hello,

This issue is most likely caused by an inconsistency between the Mech-Eye API C# wrapper and the native DLL files.

Please try upgrading to the latest version of Mech-Eye SDK and make sure all related files (MechEyeApi.dll, MechEyeApiWrapper.dll, and C# API assemblies) are from the same SDK version.

After upgrading, please remove the old referenced DLLs, redeploy the DLLs from the new SDK installation directory, and rebuild your project.

Your code usage of EnumParameter.GetValues() is correct. The current exception happens because the required native function is missing in the loaded MechEyeApiWrapper.dll, which usually indicates an old or mismatched DLL is being loaded.

If the issue still exists after updating, please provide:

  • Mech-Eye SDK version
  • MechEyeApi.dll and MechEyeApiWrapper.dll file versions
  • The DLL loading path used by your application

We will help further check the issue.

I uninstalled version 2.5.4 of the SDK and installed latest version 2.6.0
all dll are version 2.6.0.0 dated june 16 2026
dll are copied in same directory as the executable

The issue is exactly the same but there is a 3rd DLL named MechEyeApiNet.dll, it seems that this dll is not using the local dll but those in C:\Mech-Mind\Mech-Eye SDK-2.6.0\API\dll
Anyway, the issue remains the same …

Hello,

Thank you for the detailed information.

We have checked this issue internally. Based on the current behavior, there may be some issue that needs further investigation.

We will verify this case with our development team and try to reproduce it internally. Once we have more information or a confirmed result, we will provide further feedback.

Thank you for your patience.