falahati/NvAPIWrapper

32bit process running in a 64bit environment can't access NVIDIA API

guidou44 opened this issue · 2 comments

Hi!

Followed the sample, but I get this error at NVIDIA.Initialize();

Stacktrace:

at NvAPIWrapper.Native.Helpers.DelegateFactory.NvAPI_QueryInterface(UInt32 interfaceId)
at NvAPIWrapper.Native.Helpers.DelegateFactory.GetDelegateT
at NvAPIWrapper.Native.GeneralApi.Initialize()
at NvAPIWrapper.NVIDIA.Initialize()

Any idea?

Thanks

EDIT:
Just changed the target plateform for my app, since the Wrapper solution successfully built.

I'm getting the same error when I called 'Display.GetDisplays()', changing my platform to x86, the problem still happened

NVAPI is only available to 64bit programs in a 64bit environment and to 32bit programs in a 32bit environment. so just compile and run the application in Any CPU mode and you should be ok.