everytime i call a function that has the line:VideoOS.Platform.SDK.UI.Environment.Initialize();the program stopps and gives me this exeption

System.BadImageFormatException: ‘Could not load file or assembly ‘VideoOS.Platform.SDK.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc60fba4a7969f89’ or one of its dependencies. An attempt was made to load a program with an incorrect format.’

i am currently running running an x64 system but trying to build for an x86 system, and the “incorrect format” part suggests something is sending the wring bit lenght, but other than that i dont know how to solve this, please help.

My guess is that you did not copy the entire set of dlls from the MIP SDK bin folder. Can you please try to copy the entire set of dlls from the Bin folder ([C:\Program](file:C:/Program) Files\Milestone\MIPSDK\Bin) to your current application folder?