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

WinNUT-Client won't even start due to some sort of settings issue #138

Open 26tajeen opened 2 years ago

26tajeen commented 2 years ago

Exception type: System.ArgumentOutOfRangeException Exception message: Value '0' is not a valid value for Interval. Interval must be greater than 0. Parameter name: Interval Exception stack trace: at System.Windows.Forms.Timer.set_Interval(Int32 value) at WinNUT_Client.WinNUT.WinNUT_Load(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

There's no way to clear settings and restart.

traceon commented 2 years ago

Changing Computer\HKEY_CURRENT_USER\Software\WinNUT\Connexion\Delay registry DWORD value to 1 fixed the crash for me.