Bug - Unhandled Error - Import Sprite and using mouse scroll wheel.

Started by NotFred, Sat 31/05/2008 09:27:27

Previous topic - Next topic

NotFred

Thought I might post this (couldn't find anything similar already posted).

I am using:
AGS 3.0.1.35
Windows Vista 64 Ultimate (yes i know, but it is OK, honest)
4 GB
Athlon 64 x2 5000+
Microsoft Wireless Laser Mouse 5000 (might be important)

1. Start a new game using the empty game template.
2. Under General settings changed colour depth to 32 bit.
3. Saved this setting.
4. In Sprites choose "Import new sprite from file"
5. Imported a picture file (800x600 32 bit col bmp)
6. Zoomed in by 5x
7. Scrolled the scroll bars to bottom right.
8. Then used mouse scroll wheel to scroll out and in.
9. Get error message (at end of this submission)
NB the first number in the error message (2650) below can vary depending on how much the scroll bars are moved.
Also this error can much up the zoom level indicator .

-----------
Unhandled Error

Error: Value of '2650' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'.
Parameter name: Value
Version: AGS 3.0.1.35

System.ArgumentOutOfRangeException: Value of '2650' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'.
Parameter name: Value
   at System.Windows.Forms.ScrollProperties.set_Value(Int32 value)
   at AGS.Editor.SpriteImportWindow.zoomSlider_Scroll(Object sender, EventArgs e)
   at System.Windows.Forms.TrackBar.OnScroll(EventArgs e)
   at System.Windows.Forms.TrackBar.OnMouseWheel(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseWheel(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.TrackBar.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)

Pumaman

Thanks for the bug report. I haven't managed to reproduce this myself yet, but I'll put in a fix for it anyway.

SMF spam blocked by CleanTalk