Turning off the screen freezes the applications
i have a problem with my app.
The application is designed to perform certain tasks periodically.
If it deems it necessary, it must turn off the screen, but it still has to carry out its tasks.
Unfortunately, when the screen turns off, the application stops working. It is as if frozen.
When the screen is turned on (e.g. by clicking a button on the keyboard), the application becomes active again and works properly.
Freezing the application blocks threads, tasks, and even Timers, and freezes completely.
I turn off the screen by calling:
SendMessage (-1, WM_SYSCOMMAND, (IntPtr) SC_MONITORPOWER, (IntPtr) newState);
The application is written in C # .NET Framework 4.8.
Windows 10 Enterpraise LTSC (1809)
Screen lock, screensaver, user logout, etc. is disabled.
Screen is using with eDP .
On a laptop, the application works without any problems.
Please suggest why the application on the Up computer is not working properly.
- 302 All Categories
- 104 Announcements & News
- 50 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 50 Unboxing & Project Sharing
- 24 Tech Updates
- 478 UP Products
- UP Element i12 Edge
- 1 UP Squared V2
- 2 UP 4000
- 23 UP Xtreme i11
- 30 UP Squared 6000
- 42 UP Squared Pro
- 137 UP Xtreme
- 806 UP Squared
- 1.4K UP Board
- 87 UP Core Plus
- 219 UP Core
- 3 UP Xtreme Lite
- 43 UP AI Edge
- 215 Starter Kits & Peripheral