Fixed NullReferenceException when closing the form RosDBG/MainWindow.cs

This commit is contained in:
Ahmad Chatila 2023-01-18 21:55:12 +02:00 committed by Mark Jansen
parent af9999e73d
commit 6e23c44562
2 changed files with 8 additions and 2 deletions

View File

@ -401,6 +401,12 @@ namespace RosDBG
about.ShowDialog(this); about.ShowDialog(this);
} }
protected override void OnFormClosing(FormClosingEventArgs e)
{
base.OnFormClosing(e);
dockPanel.ActiveDocumentChanged -= dockPanel_ActiveDocumentChanged;
}
private void dockPanel_ActiveDocumentChanged(object sender, EventArgs e) private void dockPanel_ActiveDocumentChanged(object sender, EventArgs e)
{ {
try try

View File

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// will be increased as well. MSI installers must not be generated with the same Build Number // will be increased as well. MSI installers must not be generated with the same Build Number
// otherwise they won't upgrade the old installation! // otherwise they won't upgrade the old installation!
[assembly: AssemblyVersion("1.0.23.10")] [assembly: AssemblyVersion("1.0.23.12")]
[assembly: AssemblyFileVersion("1.0.23.10")] [assembly: AssemblyFileVersion("1.0.23.12")]