Maestro SDK example ERROR!

I am using the maestro 6 port servo controller, and have downloaded the sdk for this controller. However upon running the maestro example, this error pops up. What do I do?


You’re using Visual Studio 2010, right?

Here is a workaround to the problem: For each project in the Usc solution, change the Target Framework from “.NET Framework 4” to “.NET Framework 3.5”. This setting can be found by right-clicking on the project name in Solution Explorer pane and selecting Properties.

The root cause of this problem is that some of the PInvoke function definitions we wrote in UsbWrapper.dll (including CM_Get_Device_IDW) are incorrect. The pInvokeStackImbalance MDA is detecting the problem and raising an exception. This problem did not show up previously because people were using the Pololu USB SDK with Visual Studio 2008 and the .NET Framework 3.5, and the pInvokeStackImbalance MDA was disabled by default.

We should have a new version of the SDK out later today that fixes this problem. Thanks for letting us know about it!

-David

Thanks for your help David, when the new one is up will it be in the same spot as the last one or somewhere else on the site?

It’s already up, and it’s in the same spot as usual: Pololu USB SDK. Note that the release date now says 2010-05-26 and the name of the zip file has changed accordingly.

-David