-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EntryPointNotFoundException: Unable to find an entry point named 'GetDpiForMonitor' in DLL 'shcore.dll'. #7284
Comments
|
CreateWindow does check the windows version to be >8.0:
The same check is done in
ScreenImpl, however, checks using GetProcAddress:
|
There is an issue with this check |
Comparing WindowVersion with Windows8_1 instead of Windows8
Describe the bug
Description: The process was terminated due to an unhandled exception.
Exception Info: System.EntryPointNotFoundException: Unable to find an entry point named 'GetDpiForMonitor' in DLL 'shcore.dll'.
StackStrace:
at Avalonia.Win32.Interop.UnmanagedMethods.GetDpiForMonitor(IntPtr hmonitor, MONITOR_DPI_TYPE dpiType, UInt32& dpiX, UInt32& dpiY)
at Avalonia.Win32.WindowImpl.CreateWindow() in //src/Windows/Avalonia.Win32/WindowImpl.cs:line 773
at Avalonia.Win32.WindowImpl..ctor() in //src/Windows/Avalonia.Win32/WindowImpl.cs:line 123
at Avalonia.Win32.Win32Platform.CreateWindow() in //src/Windows/Avalonia.Win32/Win32Platform.cs:line 316
at Avalonia.Controls.Platform.PlatformManager.CreateWindow() in //src/Avalonia.Controls/Platform/PlatformManager.cs:line 48
at Avalonia.Controls.Window..ctor() in //src/Avalonia.Controls/Window.cs:line 231
at Avalonia.ReactiveUI.ReactiveWindow'1..ctor() in //src/Avalonia.ReactiveUI/ReactiveWindow.cs:line 26
at Client_App.Views.MainWindow..ctor() in C:\Users\Admin\Desktop\RAO_Project\Client_App\Views\MainWindow.axaml.cs:line 34
at Client_App.App.OnFrameworkInitializationCompleted() in C:\Users\Admin\Desktop\RAO_Project\Client_App\App.axaml.cs:line 19
at Avalonia.Controls.AppBuilderBase'1.Setup() in //src/Avalonia.Controls/AppBuilderBase.cs:line 312
at Avalonia.Controls.AppBuilderBase'1.SetupWithLifetime(IApplicationLifetime lifetime) in //src/Avalonia.Controls/AppBuilderBase.cs:line 179
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 174
Desktop (please complete the following information):
Additional context
Updated Avalonia 0.10.10 from 0.10.0
The text was updated successfully, but these errors were encountered: