U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Apps are crashing on Windows Shutdown
Re: Apps are crashing on Windows Shutdown [message #52929 is a reply to message #52925] Tue, 14 January 2020 05:36 Go to previous messageGo to previous message
zsolt is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: GTK backend now requires hb.h to be presented in include paths (Manjaro)
Next Topic: [Closed]SDLSoundDemo linking error
Goto Forum:
  


Current Time: Wed Apr 29 06:31:50 GMT+2 2026

Total time taken to generate the page: 0.00440 seconds