When an indicator is loaded from a file, the Plots are populated before State.Configure with whatever the indicator found in the file. If the # of AddPlot calls made in State.Configure is less than the number loaded from disk this bug will occur.
Details
I have an indicator which dynamically adds plots in State.Configure. When loading one of the workspaces, right clicking to view the data at a given chart position results in "Unhandled exception: Index was outside the bounds of the array." After some debugging by stripping down the file to the smallest difference that reproduces the bug I discovered the problem with the <Plots> section of the indicator. The problem file had one extra <Plot> in it versus the file that loaded fine. The data box that comes up by middle clicking gave the error. The plots displayed in the box were also incorrect reflecting the text in the file instead of the text the indicator gave the plots when it added them. I'll have to investigate why the plots are different.
Comment