HI I am using the xChart custom library, for some reasons I need to access the points Element data,
so I created a tyep in my code
and what I do to get the single ElementData from the class is:
now, the weird thing is that this code works in debug mode on the emulator but only in step mode...(!!??) If I remove the breakpoints, moving the elementData object into my object, fails and I get:
(ClassCastException) java.lang.ClassCastException: gigiosoft.MQTTAlert.xchart$_pointdata cannot be cast to gigiosoft.MQTTAlert.main$_graphdata
in release mode is always shows the exception.
I am sure there is another way to accessdata inside library classes but I don't know how..any idea?
thank you very much!
so I created a tyep in my code
B4X:
Type GraphData (BarType As String, ShowTick As Boolean, X As String, YArray() As Double)
and what I do to get the single ElementData from the class is:
B4X:
GDataElem As GraphData
PointsNum = ADashxChart.Points.Size
For kk = 0 To PointsNum-1
GDataElem = ADashxChart.Points.Get(kk)
.......
now, the weird thing is that this code works in debug mode on the emulator but only in step mode...(!!??) If I remove the breakpoints, moving the elementData object into my object, fails and I get:
(ClassCastException) java.lang.ClassCastException: gigiosoft.MQTTAlert.xchart$_pointdata cannot be cast to gigiosoft.MQTTAlert.main$_graphdata
in release mode is always shows the exception.
I am sure there is another way to accessdata inside library classes but I don't know how..any idea?
thank you very much!