Hello.
I just downloaded the SDK from the main page (file CL-Eye-Platform-SDK-1.4.0.0230.exe), but I can’t run the Winforms sample from Visual Studio 2010 Express, and I’m getting this exception:
A call to PInvoke function ‘calib!CLEyeWinFormTest.Program::CLEyeGetCameraUUID’ has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
(The exception is thrown when the code hits the mentioned function, but I suspect it will also be thrown in any other call to unmanaged code)
Running the sample from Visual Studio 2008 Express seems to work fine, but seeing the nature of the above exception, I don’t know if it just silently failing or if it’s running fine. How can I fix this so it runs from VS2010?
Another thing is, even when I copied the project to another folder, the .dll is running from the SDK\bin folder. However, I can’t find anywhere (through the VS 2k8 GUI, at least) where it’s set to look for the .dll in that folder. Where can I fix this too?
Thanks for reading and for making this library!