2024 Dec 13 10:39 AM - edited 2024 Dec 13 10:44 AM
Hi,
sometime during an OData call i got in the actionresult of Failure Action the error:
com.tns.NativeScriptException: Attempt to use cleared object reference id=XXXXX
To solve that error I simply need to close and open again the app.
Seems like I got this message, in most cases, after a while of inactivity on the app.
Ex.: OData Call of Media Entity
Ex.: OData Call of Create Entity
Why this happens and what I can check ?
Can I do somethings to avoid or limitate this issue ?
Thanks.
Request clarification before answering.
I have not seen that error before. What MDK version / platform are you using?
What is the flow like when it occurs? Could it be a timing issue where a page is being closed but there is an action that is trying to reference something on the page that was just closed?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill, this happens in all MDK the versions, even the latest 24.11.2.
The platform is Android.
I don't understand what the flow is to replicate the error since it happens sometimes when I try to call the backend with an OData operation after some inactivity on the app.
Theoretically I understand what the problem is but it's really hard to find the cause.
User | Count |
---|---|
60 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.