Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Apps are crashing on Windows Shutdown
Apps are crashing on Windows Shutdown [message #52909] |
Sat, 11 January 2020 16:23  |
zsolt
Messages: 702 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
I tested it with 2019.1, 2019.2 and current (2020-01-11) upp versions Mith MSC 2017 toolchain.
When an upp app is running, shutting down windows stops with a window like attached.
|
|
|
|
Re: Apps are crashing on Windows Shutdown [message #52929 is a reply to message #52925] |
Tue, 14 January 2020 05:36   |
zsolt
Messages: 702 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
Yes the problem is there.
So the proposed patch would be the fix of a mistyping in Ctrl::OverwatchWndProc():
ONCELOCK {
if(HMODULE hDLL = LoadLibrary ("user32")) {
AutoCast(ShutdownBlockReasonCreate, GetProcAddress(hDLL, "ShutdownBlockReasonCreate"));
- AutoCast(ShutdownBlockReasonDestroy, GetProcAddress(hDLL, "ShutdownBlockReasonCreate"));
+ AutoCast(ShutdownBlockReasonDestroy, GetProcAddress(hDLL, "ShutdownBlockReasonDestroy"));
}
}
if(ShutdownBlockReasonCreate)
ShutdownBlockReasonCreate(hwnd, ~WString(t_("waiting for user response")));
EndSession();
ELOGW("WM_QUERYENDSESSION 1");
OverwatchEndSession.Wait();
[Updated on: Tue, 14 January 2020 05:36] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 12:50:44 CEST 2025
Total time taken to generate the page: 0.00927 seconds
|