From 3dfacb72898cff5629db0efd22d1d6d461a07ebd Mon Sep 17 00:00:00 2001 From: Souryo Date: Tue, 14 Jul 2015 21:53:01 -0400 Subject: [PATCH] Potential fix for a crash that sometimes very rarely occurred when loading the emulator --- GUI.NET/Forms/frmMain.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GUI.NET/Forms/frmMain.cs b/GUI.NET/Forms/frmMain.cs index 68dac708..97447739 100644 --- a/GUI.NET/Forms/frmMain.cs +++ b/GUI.NET/Forms/frmMain.cs @@ -28,6 +28,11 @@ namespace Mesen.GUI.Forms { Application.ThreadException += Application_ThreadException; InitializeComponent(); + } + + protected override void OnLoad(EventArgs e) + { + base.OnLoad(e); _notifListener = new InteropEmu.NotificationListener(); _notifListener.OnNotification += _notifListener_OnNotification;