Posts : 556 Join date : 2008-10-08 Location : Australia
Subject: v1.911 Exception - When changing fanart slideshow delay - FIXED THANKS! Wed Oct 15, 2008 11:42 am
If you backspace in the timer window so that there is no numbers present the following error occurs. Looks like the resulting code needs to handle "" as a possible entry.
Cheers
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.InvalidCastException: Conversion from string "" to type 'Integer' is not valid. ---> System.FormatException: Input string was not in a correct format. at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) --- End of inner exception stack trace --- at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) at XBMC_Media_Companion.options.TextBox2_TextChanged(Object sender, EventArgs e) at System.Windows.Forms.Control.OnTextChanged(EventArgs e) at System.Windows.Forms.TextBoxBase.OnTextChanged(EventArgs e) at System.Windows.Forms.TextBoxBase.WmReflectCommand(Message& m) at System.Windows.Forms.TextBoxBase.WndProc(Message& m) at System.Windows.Forms.TextBox.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)
************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.
Last edited by StormyKnight on Fri Nov 28, 2008 12:57 am; edited 1 time in total
Ryld Junior Member
Posts : 23 Join date : 2008-10-12
Subject: Re: v1.911 Exception - When changing fanart slideshow delay - FIXED THANKS! Wed Oct 15, 2008 11:44 am
Perhaps the code should do nothing on.Change - and only update on save & exit - at which time if its empty set it to zero.
Otherwise, confirmed bug as well - second you empty the box, bam!
billyad2000 Admin
Posts : 1326 Join date : 2008-09-20
Subject: Re: v1.911 Exception - When changing fanart slideshow delay - FIXED THANKS! Wed Oct 15, 2008 9:17 pm
I've fixed this for next version -
If the control looses focus with either 0 or "" or another illegal entry then a messagebox warns the user and sets the time to 10 seconds
StormyKnight VIP
Posts : 556 Join date : 2008-10-08 Location : Australia
Subject: Re: v1.911 Exception - When changing fanart slideshow delay - FIXED THANKS! Thu Oct 16, 2008 10:29 am