Page 1 of 1

CPU spike with ADX study?

Posted: Thu Apr 19, 2012 1:40 pm
by 15661493
I have an ADX study which has as its data source a CandelSeries chart. The ADX lines appear in their own portion of the chart with a custom vertical axis. The chart will draw just fine and looks great. If I let the chart run for 10 minutes or so on my machine that ADX study will begin consuming lots of CPU power and eventually the chart will freeze up. Without the ADX study, or with other studies in place, the chart runs just fine.

A second issue I am having with that study relates to the selector tool. If I have the ADX study and then add the selector tool to the chart, as soon as the mouse enters the chart the whole thing blows up and .Net returns the following error message.

Any thoughts?

SYSTEM.INDEXOUTOFRANGEEXCEPTION: INDEX WAS OUTSIDE THE BOUNDS OF THE ARRAY.
AT STEEMA.TEECHART.STYLES.VALUELIST.INSERTCHARTVALUE(INT32 VALUEINDEX DOUBLE VALUE)
AT STEEMA.TEECHART.STYLES.FASTLINE.DODRAWPOINT(INT32 INDEX INT32 X INT32 Y)
AT STEEMA.TEECHART.STYLES.FASTLINE.DRAWVALUE(INT32 INDEX)
AT STEEMA.TEECHART.STYLES.FASTLINE.PREPAREFASTLINE()
AT STEEMA.TEECHART.STYLES.FASTLINE.DRAW()
AT STEEMA.TEECHART.STYLES.FASTLINE.CLICKED(INT32 X INT32 Y)
AT STEEMA.TEECHART.STYLES.SERIES.CLICKED(POINT P)
AT STEEMA.TEECHART.CHART.CALCNEEDCLICKEDPART(POINT POS BOOLEAN NEEDED)
AT STEEMA.TEECHART.CHART.CALCCLICKEDPART(POINT POS CHARTCLICKEDPART& PART)
AT STEEMA.TEECHART.TOOLS.SELECTOR.GUESSCURSOR(MOUSEEVENTARGS E CURSOR& C)
AT STEEMA.TEECHART.TOOLS.SELECTOR.MOUSEEVENT(MOUSEEVENTKINDS KIND MOUSEEVENTARGS E CURSOR& C)
AT STEEMA.TEECHART.CHART.BROADCASTMOUSEEVENT(MOUSEEVENTKINDS KIND MOUSEEVENTARGS E CURSOR& C)
AT STEEMA.TEECHART.CHART.BROADCASTMOUSEEVENT(MOUSEEVENTKINDS KIND MOUSEEVENTARGS E KEYS MODKEYS CURSOR& C)
AT STEEMA.TEECHART.TCHART.ONMOUSEMOVE(MOUSEEVENTARGS E)
AT SYSTEM.WINDOWS.FORMS.CONTROL.WMMOUSEMOVE(MESSAGE& M)
AT SYSTEM.WINDOWS.FORMS.CONTROL.WNDPROC(MESSAGE& M)
AT SYSTEM.WINDOWS.FORMS.CONTROL.CONTROLNATIVEWINDOW.ONMESSAGE(MESSAGE& M)
AT SYSTEM.WINDOWS.FORMS.CONTROL.CONTROLNATIVEWINDOW.WNDPROC(MESSAGE& M)
AT SYSTEM.WINDOWS.FORMS.NATIVEWINDOW.DEBUGGABLECALLBACK(INTPTR HWND INT32 MSG INTPTR WPARAM INTPTR LPARAM)

Re: CPU spike with ADX study?

Posted: Fri Apr 20, 2012 8:14 am
by 10050769
Hello DaveR,

Could you send us a simple project that we can run as-is here, because we can try to reproduce your problems?

Thanks,