ArgumentOutOfRangeException: Index was out of range
Author: samsarasota1
Creation Date: 6/13/2009 12:51 PM
profile picture

samsarasota1

#1
opening a strategy,

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

How do we clear this ?

Sam
profile picture

Eugene

#2
Sam,

I already replied to you with a solution in your ticket -- check it out. Please keep discussions in one place, thank you.
profile picture

palmtreeinvestor

#3
WL 5.4 I try to pull up the new stradegy from code and I get an "index out of range. Must be non-negative and less than size of collection" what am I doing wrong. I looked for 2 hours on the searches and just get the above (did not help I can not pull up his ticket.
Please help.
profile picture

Cone

#4
Generally it's an error in the Strategy, but it can occur for a multitude of reasons. The best bet it to post the code and identify applicable settings (symbol, data loading, etc.) so someone can take a look if you can't solve it on your own.
profile picture

palmtreeinvestor

#5
This happens even when trying to open a new fresh blank strategy window. No strategy even started.
profile picture

Eugene

#6
Welcome to our WL5 Wiki, where you can find the solution:

Strategy editor does not function
profile picture

palmtreeinvestor

#7
Above info did not not cover the problem.
I have WL 5.4
I get this message on any code based stratagys I try to open even a new blank page.

DETAILS
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(ExceptionArgument argument, ExceptionResource resource)
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 QWhale.Editor.Dialogs.SyntaxSettings.ApplyToEdit(ISyntaxEdit edit)
...
profile picture

Eugene

#8
This is a known problem, we just thought the 5.4 release fixes it cold. Nevertheless, the Wiki tip in my link above contains everything you need to get WLP un & running in no time.
profile picture

Eugene

#9
Last-minute thought: by chance, have you somehow modified the default settings in the Editor while you were working in 5.3? Like picking a different font or color?
profile picture

palmtreeinvestor

#10
I Could have changed a color a year ago, but I looked at the colors and cit does not look like anything has been changed. Help please,
I have been doing searches for the afternoon and it will not give me the answer to where the data file is kept. If I am supose to change some how the EditorSettings.xml with EditorSettings.147.xml
Please help to make this easy.
I did a computer scan all files Hiden and system and could not find a EditorSettings.xml file.
FYI Fidelity called me today to see if I had any input on WL and the web site.
profile picture

Eugene

#11
QUOTE:
it will not give me the answer to where the data file is kept.

The answer is indeed in the document I'm trying to focus your attention for the 3rd time now (link above):
CODE:
Please log in to see this code.

Turn on hidden file visibility if required. Close WLP, rename EditorSettings.xml to EditorSettings.bak, and restart WLP.

Alternately, open up WealthLabConfig.txt from the same directory, remove this line and save:
CODE:
Please log in to see this code.

profile picture

palmtreeinvestor

#12
Thanks it worked.
My problem finding file was I did not have all 3 types hiddens unchecked.
My user guide or F1 does not open, any help.
profile picture

Cone

#13
Google something like cannot open chm. There are multiple reasons it can happen. It seems like we've discussed it on these forums a couple years ago too.
profile picture

Eugene

#14
Below is one of those forum threads that Robert mentions:
WLD's CHM Help and Vista?
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).