- My indicator can have either 1 or 2 plots (value and signal line). Therefore there are two Values[] accessor properties.
- It is currently compiled to have only the value plot enabled. AddPlot() gets done for the value plot, but no AddPlot() gets done for the signal line plot. Note that this is a static, compiled in, state. It is not some change I am making on the fly. Both Values[] and Plots[] have a length of 1, as they should.
- My own code knows enough to not call the accesor function for the signal line plot if there is no such plot.
- Breaking for an exception shows that the accessor property for the signal line is getting called anyway. The call stack shows only two things:
- (1) [External Code]
- (2) Signal plot accessor property Get method
Come on folks! Why is outside code calling my accesor property for a plot that does not exist?
This is the second sort of such thing I have seen in the last few days. I really need to know just what is going on.
As far as I am concerned, this is a show-stopping NT bug -- stuff I have no control over is making calls into my code when it should know better. It is calling for information on a plot that does not exist. The basic arrays are fine (Values[] and Plots[]). I really need help understanding what perverse logic is making such a bogus call on my code!
Perhaps one of the NT support people who monitor this forum could help? Please explain exactly when NT calls the Value[] accessor properties.
--EV
Comment