https://bugzilla.wikimedia.org/show_bug.cgi?id=34634

       Web browser: ---
             Bug #: 34634
           Summary: Exception when resizing application window
           Product: Huggle
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Application
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Originally reported by [email protected], 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)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to