Studio 2015 RC2 API - Cannot open/create project

Hi,

when I try to open an existing project  using the API with

var proj = new FileBasedProject(@"d:\test.sdlproj");

I get the following error:

Managed Debugging Assistant 'PInvokeStackImbalance' has detected a problem in 'C:\Program Files (x86)\SDL\SDL Trados Studio\Studio4\ConsoleApplication1.vshost.exe'.

Additional information: A call to PInvoke function 'SentinelRMSCore!SentinelRMSCore.Interface.LSAPI::VLSsetFileName' 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.

Am I doing something wrong maybe? TArget framework is 4.5.2, X86, target folder is Studio4.

Regards,

Tamas

Parents Reply Children
No Data