gawindx / WinNUT-Client

This is a NUT windows client for monitoring your ups hooked up to your favorite linux server.
GNU General Public License v3.0
381 stars 70 forks source link

Crash after anysetting change HKEY_CURRENT_USER\Software\WinNUT\Connexion #166

Open GOUKI9999 opened 1 year ago

GOUKI9999 commented 1 year ago

win11 22H2 22621.1344 /v2.0.7722.30975 /.net v4.0.30319 &3.5 &3.0

Exception type: System.NullReferenceException Exception message: 未将对象引用设置到对象的实例。 Exception stack trace: 在 WinNUT_Client_Common.Nut_Socket.get_IsKnownUPS(String Test_UPSname) 在 WinNUT_Client_Common.UPS_Device.Connect_UPS() 在 WinNUT_Client_Common.UPS_Device..ctor(Nut_Parameter Nut_Config, Logger& LogFile) 在 WinNUT_Client.WinNUT.WinNUT_Load(Object sender, EventArgs e) 在 System.EventHandler.Invoke(Object sender, EventArgs e) 在 System.Windows.Forms.Form.OnLoad(EventArgs e) 在 System.Windows.Forms.Form.OnCreateControl() 在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 在 System.Windows.Forms.Control.CreateControl() 在 System.Windows.Forms.Control.WmShowWindow(Message& m) 在 System.Windows.Forms.Control.WndProc(Message& m) 在 System.Windows.Forms.ScrollableControl.WndProc(Message& m) 在 System.Windows.Forms.ContainerControl.WndProc(Message& m) 在 System.Windows.Forms.Form.WmShowWindow(Message& m) 在 System.Windows.Forms.Form.WndProc(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

First run seems everything was ok, but when I changed any setting (ip port name etc.)in connection tab of gui, it will crash at rerunning

Even I tried to export the reg file from other win10 computer that clinet works fine there , and inport file to this one, it not works. HKEY_CURRENT_USER\Software\WinNUT

After several times reinstall repair ,It crash yet

gbakeman commented 1 year ago

Please see #136 and try the latest version.