Unhandled exception Index was out of range
Author: novendeh
Creation Date: 9/1/2012 1:33 PM
profile picture

novendeh

#1
All of a sudden, on a number of script, I am getting this error. I can't even open the script because WL basically crashes. This also happens with different stock symbols and whether I select specific dates or all data.

Any suggestions? I've copied the debugging script that "pops up."

[i]See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at QWhale.Editor.Dialogs.ColorThemes.get_ActiveTheme()
at QWhale.Editor.Dialogs.SyntaxSettings.get_Font()
at QWhale.Editor.Dialogs.SyntaxSettings.ApplyToEdit(ISyntaxEdit edit, Boolean withStyles)
at m.f()
at m..ctor(SyntaxEdit A_0, CsParser A_1)
at dh..ctor(ChartForm A_0)
at WealthLabPro.ChartForm.a(Strategy A_0)
at c3.a(Strategy A_0, Boolean A_1, Boolean A_2)
at c3.a(Strategy A_0, Boolean A_1)
at c3.a(Strategy A_0)
at c3.av()
at c3.by(Object A_0, EventArgs A_1)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(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)
profile picture

Eugene

#2
Next time please consider searching the Knowledge Base. Chances are the error is known, like this one:

Errors | Strategy > Strategy editor does not function
profile picture

novendeh

#3
Thanks, Eugene. I did search, before posting, the knowledge base in wealth-lab.com but did not search wiki.

After search wiki, the only thing I found was this link

http://www2.wealth-lab.com/WL5WIKI/kbErrorsStrategy.ashx?HL=index,range

This error looks almost identical to the one I am getting.

I then searched my files, and could not find any of the files listed in the link. I think this link applies to 5.3 and not 6.3, which I am running.

Any other suggestions? Am I missing something? Thanks.
profile picture

Eugene

#4
No other suggestions but to scroll down to

Strategy editor does not function

and try out any of the three workarounds. One of them will work. I precisely know what I'm talking about.
profile picture

novendeh

#5
Eugene - I'm posting this response in case someone else has the same problem I had.

I did a file search for EditorSettings.xml and it said no file existed like this. This was using the Windows 7 explorer as well as google destop. However, I eventually found the file by going to the following path on my machine

[/u]C:\Users\Earl\AppData\Roaming\Fidelity Investments\WealthLabPro\1.0.0.0\Data[/u]


and found the files. I don't know why explorer didn't find them, as I have fully indexed it.

However, the bottom line is this solution fixed the problem. Many thanks for your expert help.
profile picture

Eugene

#6
Earl

I don't know why you've chosen to search whereas the KB article clearly instructs where to find that file:

see "Data > Where Data is stored" in the Wealth-Lab User Guide

The Explorer did not find the files because hidden file/folder visibility was not enabled.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).