Winlator 7.1 fails to set threads dpi awareness context

Questions about Wine on Android
Locked
Wolff
Newbie
Newbie
Posts: 2
Joined: Wed Jul 10, 2024 6:28 pm

Winlator 7.1 fails to set threads dpi awareness context

Post by Wolff »

The program I'm trying to run requires Dot Net Desktop 8 installed and once I do that and run the program I get several errors saying that multiple processes do not have dpi awareness context and I don't know how to fix that in wine. The exact error message is:
Exception Details:
System.ComponentModel.Win32Exception (0x80004005): Failed to get thread's DpiAwareness context.
at System.Windows.Forms.DpiHelper.DpiAwarenessScope..ctor(DPI_AWARENESS_CONTEXT context, DPI_HOSTING_BEHAVIOR behavior)
at System.Windows.Forms.DpiHelper.EnterDpiAwarenessScope(DPI_AWARENESS_CONTEXT awareness, DPI_HOSTING_BEHAVIOR dpiHosting)
at System.Windows.Forms.ToolStripManager.ModalMenuFilter.PreFilterMessage(Message& m)
at System.Windows.Forms.Application.ThreadContext.ProcessFilters(MSG& msg, Boolean& modified)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
at System.Windows.Forms.Application.ThreadContext.Microsoft.Office.IMsoComponent.FPreTranslateMessage(MSG* msg)
at System.Windows.Forms.Application.ComponentManager.Microsoft.Office.IMsoComponentManager.FPushMessageLoop(UIntPtr dwComponentID, msoloop uReason, Void* pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(msoloop reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(msoloop reason, ApplicationContext context)
at PKHeX.WinForms.Program.Main()
Wolff
Newbie
Newbie
Posts: 2
Joined: Wed Jul 10, 2024 6:28 pm

Re: Winlator 7.1 fails to set threads dpi awareness context

Post by Wolff »

Just in case anyone else has this problem and comes here for answers the issue was Winlator comes with a custom version of wine that was on 9.2. I installed the x64 version of 9.12 and everything works now (other than when you try to load a file you need to click the folders in the file tree rectangular area off to the left and not the main window because for some reason that crashes winlator. Everything else works!)
Locked