I'm using Optitrack V120 Trio camera in my C# project. In this project I am using NPTrackingTools library for capturing data from camera (both versions x86 and x64). With older libraries everything goes without problem, but with newer version I am always getting this error:
Unable to load dll file - exception 0x8007007E
I don't know, how to describe "version" of library so I can provide sizes here:
Old versions, used without problem:
NpTrackingTools.dll 6516 kB
NpTrackingTools.x64.dll 15477 kB
New versions, with error:
NPTrackingTools.dll 23991 kB
NpTrackingTools.x64.dll 28228 kB
Sourcecode from my C# wrapper:
Code: Select all
[DllImport("NPTrackingTools.dll", EntryPoint = "TT_Initialize", CallingConvention = CallingConvention.Cdecl)]
public static extern int TT_Initialize();
[DllImport("NPTrackingTools.dll", EntryPoint = "TT_CameraCount", CallingConvention = CallingConvention.Cdecl)]
public static extern int TT_CameraCount();
[DllImport("NPTrackingTools.dll", EntryPoint = "TT_Update", CallingConvention = CallingConvention.Cdecl)]
public static extern int TT_Update();