Skip to content

check developer mode before calling SetStablePowerState #2

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

Open
ethan-tqa opened this issue Feb 26, 2017 · 0 comments
Open

check developer mode before calling SetStablePowerState #2

ethan-tqa opened this issue Feb 26, 2017 · 0 comments

Comments

@ethan-tqa
Copy link

You need to check if the PC is in developer mode before calling SetStablePowerState. Otherwise the device will be removed, with the following error:

D3D12 ERROR: ID3D12Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_INVALID_CALL: There is strong evidence that the application has performed an illegal or undefined operation, and such a condition could not be returned to the application cleanly through a return code). [ EXECUTION ERROR #232: DEVICE_REMOVAL_PROCESS_AT_FAULT] D3D12: SetStablePowerState is only available when developer mode is enabled.

http://stackoverflow.com/questions/41231586/how-to-detect-if-developer-mode-is-active-on-windows-10

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

1 participant