NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) Weather / Weather2 v
1 2 3 Next »
Argument out of range exception: Length cannot be less than zero

 
  • 0 Vote(s) - 0 Average
Argument out of range exception: Length cannot be less than zero
LewE
Offline

Posting Freak

Posts: 771
Threads: 115
Joined: Oct 2007
#11
2010-04-02, 01:44 AM
I'm just glad it was something simple like a URL change rather than something that affected the scraper.
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#12
2010-04-02, 01:54 AM
it was a fairly simple change, but it showed me that I need to put in better exception handling if things like this occur again...

Plus, it brought to my attention a separate bug, which has been fixed Smile
Author of Weather (NPVR) & Weather2 (GBPVR)
Ericwm
Offline

Junior Member

Posts: 4
Threads: 1
Joined: Jun 2010
#13
2010-07-07, 02:10 PM
I have a similar problem, I am using the latest version of Weather2, windows xp sp3. Location is Cape Town, no maps selected.
log file extract is-
2010-07-07 13:36:48.765 ERROR [6] FATAL UNHANDLED EXCEPTION:: System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at weather2.CommonMethods.GetMonthDayFromDateTime(DateTime _date)
at weather2.MapList.LoadMapDictionary()
at weather2.MapList.LoadMaps(Boolean _downloadNewMaps)
at weather2.AccuweatherXML.ParseDataAndDownloadMaps()
at weather2.WeatherTask.ParseData()
at weather2.WeatherTask.UpdateWeatherThread()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Any suggestions
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#14
2010-07-07, 02:24 PM
Ericwm Wrote:I have a similar problem, I am using the latest version of Weather2, windows xp sp3. Location is Cape Town, no maps selected.
log file extract is-
2010-07-07 13:36:48.765 ERROR [6] FATAL UNHANDLED EXCEPTION:: System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at weather2.CommonMethods.GetMonthDayFromDateTime(DateTime _date)
at weather2.MapList.LoadMapDictionary()
at weather2.MapList.LoadMaps(Boolean _downloadNewMaps)
at weather2.AccuweatherXML.ParseDataAndDownloadMaps()
at weather2.WeatherTask.ParseData()
at weather2.WeatherTask.UpdateWeatherThread()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Any suggestions
I am guessing your regional settings has the year first? i.e. YYYY/MM/DD ?

I have a fix for this, but I haven't made a release yet... As a current workaround, you could change your regional date settings in Windows to something else that doesn't start with a year.
Author of Weather (NPVR) & Weather2 (GBPVR)
Ericwm
Offline

Junior Member

Posts: 4
Threads: 1
Joined: Jun 2010
#15
2010-07-08, 09:31 AM
Thanks very much - I changed the short date format as you suggested and Weather2 is working fine.
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#16
2010-07-08, 01:29 PM
I uploaded a new version yesterday that fixes this problem (hopefully) Smile
Author of Weather (NPVR) & Weather2 (GBPVR)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode