Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
guidou44 opened this issue Nov 2, 2019 · 2 comments
Closed

Comments

@guidou44
Copy link

guidou44 commented Nov 2, 2019

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.

@guidou44 guidou44 closed this as completed Nov 2, 2019
@lekmagician
Copy link

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

@falahati
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants