Here is the trace. You have seen it before, so I did not bother to annotate it this time. The only difference is that the NT internal error is different -- this time it is OnCalculateMinMax(). Perhaps what we are seeing is garbage collection vagaries, and the internal code gets varying distances before some function encounters the problem.
08/05/15 #1 Exit: VsaModelIndicator.DoStateChange() (OnStateChange(Realtime) completed, State.Realtime) CurrentBar=16501 ^SPX (Daily) 01/03/50 #1 Entry: VsaModelIndicator.DoStateChange() (OnStateChange(Terminated) started, State.Terminated) CurrentBar=16501 ^SPX (Daily) 01/03/50 [B]#1[/B] Exit: VsaModelIndicator.DoStateChange() (OnStateChange([B]Terminated[/B]) completed, [B]State.Terminated[/B]) CurrentBar=16501 ^SPX (Daily) [B]Indicator 'VsaModelIndicator': Error on calling 'OnCalculateMinMax' method on bar -1: Index was outside the bounds of the array. [/B]// F5 chart refresh here 00:03:14 #2 Entry: VsaModelIndicator.VsaModelIndicator() (Constructor started , State.SetDefaults) CurrentBar=n/a <no instrument> 00:03:14 #2 Exit: VsaModelIndicator.VsaModelIndicator() (Constructor completed, State.SetDefaults) CurrentBar=n/a <no instrument> 00:03:14 #2 Entry: VsaModelIndicator.DoStateChange() (OnStateChange(SetDefaults) started, State.SetDefaults) CurrentBar=n/a <no instrument> 00:03:14 #2 Exit: VsaModelIndicator.DoStateChange() (OnStateChange(SetDefaults) completed, State.SetDefaults) CurrentBar=n/a <no instrument> 00:03:14 #1 Entry: VsaModelIndicator.[B]Clone()[/B] (OnStateChange([B]Terminated[/B]) completed, [B]State.Finalized[/B]) CurrentBar=n/a ^SPX (Daily) [B]Cloning object #2 from object #1. State=Finalized[/B] 00:03:14 #1 Exit: VsaModelIndicator.Clone() (OnStateChange(Terminated) completed, State.Finalized) CurrentBar=n/a ^SPX (Daily) 00:03:14 #2 Entry: VsaModelIndicator.DoStateChange() (OnStateChange(Configure) started, State.Configure) CurrentBar=n/a ^SPX (Daily) 00:03:14 #2 Exit: VsaModelIndicator.DoStateChange() (OnStateChange(Configure) completed, State.Configure) CurrentBar=n/a ^SPX (Daily) 00:03:14 #2 Entry: VsaModelIndicator.DoStateChange() (OnStateChange(DataLoaded) started, State.DataLoaded) CurrentBar=n/a ^SPX (Daily)
(FWIW: I always leave my trace printing on while in debug mode. That way, when something happens I can look t the trace if that is helpful.)
--EV
Comment