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
402 stars 70 forks source link

The latest dev 2.1 version cannot support multiple network cards #145

Open qzwl opened 2 years ago

qzwl commented 2 years ago

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.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)

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.Reconnect_Socket(Object sender, EventArgs e) 在 System.Windows.Forms.Timer.OnTick(EventArgs e) 在 System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Current environment windows11 There are multiple network cards. When one is disabled, it can be opened normally and the communication is normal. If you have a problem, you can try it.

I don't know much English, so I use translation, which may seem a little strange.

当前环境 Windows11 有多块网卡,当禁用一块后,就可以正常打开且通讯正常。 有遇到问题的小伙伴,可以尝试一下。

本人不太懂英语,所以用了翻译,可能看起来有点怪。

qzwl commented 2 years ago

More times, it seems that he has adapted to multiple network cards. Fantastic! 多几次 好像他就适应了多网卡了。好神奇。