Last modified: 2013-09-27 12:50:01 UTC
Originally reported by Mike.R....@tiscali.cz, May 20, 2011 ___________________________________________________________ If I resize the application window to a too small height, the following exceptions occur: *When resizing: ArgumentOutOfRangeException: Hodnota -1 není platnou hodnotou pro argument Value. Hodnota Value musí být v rozsahu od 'minimum' do 'maximum'. Název parametru: Value v System.Windows.Forms.ScrollBar.set_Value(Int32 value) v Huggle.Main.DrawQueues() v Huggle.Main._Lambda$__377(Object a0, PaintEventArgs a1) v System.Windows.Forms.PaintEventHandler.Invoke(Object sender, PaintEventArgs e) v System.Windows.Forms.Control.OnPaint(PaintEventArgs e) v System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) v System.Windows.Forms.Control.WmPaint(Message& m) v System.Windows.Forms.Control.WndProc(Message& m) v System.Windows.Forms.ScrollableControl.WndProc(Message& m) v System.Windows.Forms.ContainerControl.WndProc(Message& m) v System.Windows.Forms.UserControl.WndProc(Message& m) v System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) v System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) v System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) *Afterwards: ArgumentOutOfRangeException: Hodnota -1 není platnou hodnotou pro argument Value. Hodnota Value musí být v rozsahu od 'minimum' do 'maximum'. Název parametru: Value v System.Windows.Forms.ScrollBar.set_Value(Int32 value) v Huggle.Main.DrawQueues() v Huggle.Processing.ProcessNewEdit(Edit Edit) v Huggle.Irc.ProcessIrcEdit(Object EditObject) *After restarting the aplication: ArgumentOutOfRangeException: Hodnota -1 není platnou hodnotou pro argument Value. Hodnota Value musí být v rozsahu od 'minimum' do 'maximum'. Název parametru: Value v System.Windows.Forms.ScrollBar.set_Value(Int32 value) v Huggle.Main.DrawQueues() v Huggle.Main.QueueSelector2_SelectedIndexChanged() v Huggle.Main._Lambda$__410(Object a0, EventArgs a1) v System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e) v System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value) v System.Windows.Forms.ComboBox.set_SelectedItem(Object value) v Huggle.Main.SetQueueSelectors() v Huggle.Main.Configure() v Huggle.Main.Initialize() v Huggle.LoginForm.Done() v Huggle.Misc.CallbackInvoke(Object TargetObject) It all boils down to assignment of the value -1 to the property ScrollBar.Value; see [http://msdn.microsoft.com/en-us/library/system.windows.forms.scrollbar.value.aspx]. How to reproduce: * Start the application and log in. * Select "Show two queues" in the application menu. * Resize the application window so that only one item is visible in the bottom queue. The bug cannot be reproduced with only one queue visible, and may be related to a bug I had reported on Wikipedia: http://en.wikipedia.org/wiki/Wikipedia:Huggle/Feedback#Bug_when_displaying_two_queues ___________________________________________________________ Moved from the Google Code Issues Tracker (http://code.google.com/p/huggle/issues/list)
For the record, the other bug report has been archived and it can now be found at http://en.wikipedia.org/wiki/Wikipedia:Huggle/Feedback/Archive_16#Bug_when_displaying_two_queues
This is irrelevant bug for huggle 3