Your app crashes here on Win 7 (64-bit) and PureBasic v5.62 (32-bit). Crashes if I run it from the PB source, or from the compiled exe. No error message in the IDE, just the error in the screenshot below.

SetProcessDpiAwarenessContext is for Win 10 only, so I fixed it by changing the SetDpiAwarenessContext() procedure to this:
Code:
Procedure SetDpiAwarenessContext()
If OSVersion()=>#PB_OS_Windows_10
user32 = OpenLibrary(#PB_Any, "user32.dll")
If user32
SetProcessDpiAwarenessContext = GetFunction(user32, "SetProcessDpiAwarenessContext")
SetProcessDpiAwarenessContext(#DPI_AWARENESS_CONTEXT_SYSTEM_AWARE)
CloseLibrary(user32)
EndIf
EndIf
EndProcedure