Asn1Editor.WPF
Asn1Editor.WPF copied to clipboard
Click on "About" or "License" crashes the app
Hi, Using W10 and VS 2019 to generate Asn1Editor:
- a click on Help->About or Help->License crashes the app
Is there a configuration issue on my side (missing/incorrect path)?
AK
what happens if you debug in VS? Do you get any exceptions? And there must be a log file in %AppData%\Sysadmins LV\Asn1Editor\Logs
with unhandled exception details.
Works fine with the debugger. Any harcoded path to a resource? Nothing in log file on this.
Please provide logs from %AppData% folder when app crashes.
I get nothing with the debugger: no crash, things display correctly.
Here is the log file content:
******************************** Started ******************************** Process: Asn1Editor PID : 37816 Version: 1.4.2.0
I think I know what might be wrong. Related to the https://github.com/PKISolutions/Asn1Editor.WPF/pull/21
Suggest you to try following code for the function setParent
void setParent(Boolean mainWindowAsParent = false) {
WindowCollection windows = Application.Current.Windows;
List<Window> lvw = windows.Cast<Window>().Where(x => x.Visibility == Visibility.Visible).ToList();
Window parent = null;
if (lvw.Count > 0)
{
parent = mainWindowAsParent
? lvw.First()
: lvw.Last();
}
hwnd.Owner = parent;
}
This is fixed in https://github.com/PKISolutions/Asn1Editor.WPF/releases/tag/v23.10.24