Skip to content
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

SetDpiAwareness on Win7 causes EntryPointNotFoundException #2095

Closed
x2bool opened this issue Nov 13, 2018 · 4 comments
Closed

SetDpiAwareness on Win7 causes EntryPointNotFoundException #2095

x2bool opened this issue Nov 13, 2018 · 4 comments

Comments

@x2bool
Copy link

x2bool commented Nov 13, 2018

Windows 7 only crash.

Unhandled Exception: System.TypeInitializationException: The type initializer fo
r 'Avalonia.Win32.Win32Platform' threw an exception. ---> System.EntryPointNotFo
undException: Unable to find an entry point named 'SetProcessDpiAwarenessContext
' in DLL 'user32.dll'.
at Avalonia.Win32.Interop.UnmanagedMethods.SetProcessDpiAwarenessContext(IntP
tr dpiAWarenessContext)
at Avalonia.Win32.Win32Platform.SetDpiAwareness()
at Avalonia.Win32.Win32Platform..ctor()
at Avalonia.Win32.Win32Platform..cctor()
@kekekeks
Copy link
Member

#1801

@grokys
Copy link
Member

grokys commented Nov 21, 2018

Hmm, strange - what version of Avalonia and Win7 are you using? This should have been fixed to not call that method if it doesn't exist in #2010. I've just tried again on my Win7 SP1 VM and it seems to work:

image

@x2bool
Copy link
Author

x2bool commented Nov 22, 2018

Usually the most recent version from nightly feed. This was reported by a user of my project. I'll ask him to try again.

@x2bool
Copy link
Author

x2bool commented Mar 2, 2019

I finally tested it myself. Win7 works now just fine. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants