- Dec 12, 2022
- 357
- 2
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
B4X:
and what I do to get the single ElementData from the class is:
B4X:
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:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
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!
برای دیدن لینک ها باید ثبت نام کنید