Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
SaveWindowPosition causes application to crash #3028
What steps will reproduce this issue?
Opening application and it crashes as my applications Main() is executed. This crash is due to group/security policy settings on the system where my application is running combined with
I am not sure the proper way to fix the issue. In MahApps.Metro.Shared/Controls/WindowSettings.cs
I can prevent the issue by setting
Please provide comment on if MahApps.Metro should gracefully handle the exception. If so, I will make the required changes and commit them.
Lower down, I have included the stack traces for both crashes.
Stack Trace (Original Crash)
System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
Stack Trace (Crash After Expanding Try Catch Loop)
MahApps.Metro.MahAppsException: Failed to set the window state from the settings file ---> System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))