I fixed it, it was a huge wrapper and I missed 1 variable. All working now.
Testing the speed vs a MATLAB wrapper we'll see which is better. It would be
nice if PythonNET could be put in a nogil Cython loop with prange (OpenMP) to
get multiple processors, although from the FAQ looks like that
If you can share equivalent calls in matlab and python to .NET DLLs we may
be able to figure out what caused the error.
pythonnet is not using C compiler on Windows, so VS version does not
matter. What matters is .NET version (4.0+), and bitness (32-bit, 64-bit,
or AnyCPU).
If you were able to ma