Selection Tool Error message
Posted: Wed Feb 08, 2012 2:36 pm
I have my application set up so it will trap unhandled errors, log them, and then send the error message back to me. I have seen this particular error message come through from client systems, but never knew exactly what was generating it. Yesterday I had it happen to me so now I have an idea where inside TeeChart it is coming from.
This is from a TeeChart loaded with a CandleSeries chart, a Volume series, and probably some other series like the CLVFunction. If I add a selector tool to the chart and then simply move my mouse across the screen this error can be thrown. It happens very infrequently, but it does pop up sometimes.
NEGATING THE MINIMUM VALUE OF A TWOS COMPLEMENT NUMBER IS INVALID.
AT SYSTEM.MATH.ABSHELPER(INT32 VALUE)
AT STEEMA.TEECHART.STYLES.CUSTOMPOINT.CLICKEDPOINTER(INT32 VALUEINDEX INT32 TMPX INT32 TMPY INT32 X INT32 Y)
AT STEEMA.TEECHART.STYLES.CUSTOMPOINT.CLICKED(INT32 X INT32 Y)
AT STEEMA.TEECHART.STYLES.CUSTOM.CLICKED(INT32 X INT32 Y)
AT STEEMA.TEECHART.STYLES.SERIES.CHECKMOUSE(CURSOR& C INT32 X INT32 Y)
AT STEEMA.TEECHART.CHART.CHECKMOUSESERIES(CURSOR& C INT32 X INT32 Y)
AT STEEMA.TEECHART.CHART.DOMOUSEMOVE(INT32 X INT32 Y 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.CALLBACK(INTPTR HWND INT32 MSG INTPTR WPARAM INTPTR LPARAM)
Another error I see very often with the CLVFunction also has to do with the selection tool. Sometimes if I put up the CLVFunction, add the Selector Tool and then click on the CLVFunction line, the chart turns into a white background with a big red X through it. This happens late in the day when there are apt to be null points in the chart, meaning time has gone by with no new data being added to the chart. Anyway, it might be good to look into that function and see where a null value will cause it to fail. (I wish I could create one with data that would blow, but I am not sure that I can.)
This is from a TeeChart loaded with a CandleSeries chart, a Volume series, and probably some other series like the CLVFunction. If I add a selector tool to the chart and then simply move my mouse across the screen this error can be thrown. It happens very infrequently, but it does pop up sometimes.
NEGATING THE MINIMUM VALUE OF A TWOS COMPLEMENT NUMBER IS INVALID.
AT SYSTEM.MATH.ABSHELPER(INT32 VALUE)
AT STEEMA.TEECHART.STYLES.CUSTOMPOINT.CLICKEDPOINTER(INT32 VALUEINDEX INT32 TMPX INT32 TMPY INT32 X INT32 Y)
AT STEEMA.TEECHART.STYLES.CUSTOMPOINT.CLICKED(INT32 X INT32 Y)
AT STEEMA.TEECHART.STYLES.CUSTOM.CLICKED(INT32 X INT32 Y)
AT STEEMA.TEECHART.STYLES.SERIES.CHECKMOUSE(CURSOR& C INT32 X INT32 Y)
AT STEEMA.TEECHART.CHART.CHECKMOUSESERIES(CURSOR& C INT32 X INT32 Y)
AT STEEMA.TEECHART.CHART.DOMOUSEMOVE(INT32 X INT32 Y 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.CALLBACK(INTPTR HWND INT32 MSG INTPTR WPARAM INTPTR LPARAM)
Another error I see very often with the CLVFunction also has to do with the selection tool. Sometimes if I put up the CLVFunction, add the Selector Tool and then click on the CLVFunction line, the chart turns into a white background with a big red X through it. This happens late in the day when there are apt to be null points in the chart, meaning time has gone by with no new data being added to the chart. Anyway, it might be good to look into that function and see where a null value will cause it to fail. (I wish I could create one with data that would blow, but I am not sure that I can.)