
I've added the .NET 3.5 dll to the GAC, and referenced it from my Ventuz script. My implementation is sound, as it works in Visual Studio. But, the error I get is "The type initializer for ‘Leap.LeapPINVOKE’ threw an exception". I googled this first - in case it was anything obvious, and it appears that you have to copy the unmanaged libraries into the same directory as the executable for the application. I've proved this with Visual Studio - I get the same error until I copy the dependencies into the \bin\debug folder. (http://bit.ly/1cdacNa)
So - my question is, where is the equivalent folder for a compiled ventuz script node? I thought it would be C:\Users\....\AppData\Local\Temp, as when I debug from Visual Studio it tells me that this is where the DLL resides. I still get the same error when I drop the unmanaged dependencies into that folder.
Any clues?
Cheers,
Craig.