When I call any of the functions when the IDE is configured to x64 platform, the functions fails with System.AccessViolationException