RainRain
RainRain

Reputation: 453

SystemEvents.SessionSwitch Crashes in Windows 8 but works in Windows 10

I am developing a WPF App and getting a very weird problem:

I use SystemEvents.SessionSwitch += SystemEvents_SessionSwitch; to detect the screen lock event of the computer. The code works well in Windows 10. But crashes in Windows 8. The error window I got was "You App has stopped working" without any exception code. I tried it on other Windows 10 and other Windows 8 and got the same results. Any ideas?

Upvotes: 0

Views: 140

Answers (1)

RainRain
RainRain

Reputation: 453

I'm not sure why someone downvoted this question. Anyway, I've fixed the problem by installing 341.61-quadro-grid-desktop-notebook-win8-win7-64bit-international-whql.exe on windows 8.

Upvotes: 0

Related Questions