diff --git a/GUI/MainForm.cs b/GUI/MainForm.cs index 1f9e361..f9bc875 100644 --- a/GUI/MainForm.cs +++ b/GUI/MainForm.cs @@ -158,8 +158,8 @@ namespace OpenHardwareMonitor.GUI { Show(); } - // Create a handle, otherwise calling Close() does not fire FormClosed - CreateHandle(); + // Create a handle, otherwise calling Close() does not fire FormClosed + IntPtr handle = Handle; } private void SubHardwareAdded(IHardware hardware, Node node) {