Gary Milne Active Member Licensed User Longtime User Aug 15, 2014 #1 I'm using the KeyValueStore to store some short text lists using a list object. The lists are written successfully to the database. When reading back the lists the first couple work and then it crashes with the error shown below. I've searched for the relevance of line 0 or command 110 but find no references. What makes this problem even harder to solve is that when I step through the code with the debugger it does not crash and continues on reading the remaining lists. Any suggestions. I'd like to use this but perhaps a simple text file might be more reliable.
I'm using the KeyValueStore to store some short text lists using a list object. The lists are written successfully to the database. When reading back the lists the first couple work and then it crashes with the error shown below. I've searched for the relevance of line 0 or command 110 but find no references. What makes this problem even harder to solve is that when I step through the code with the debugger it does not crash and continues on reading the remaining lists. Any suggestions. I'd like to use this but perhaps a simple text file might be more reliable.
Erel B4X founder Staff member Licensed User Longtime User Aug 17, 2014 #2 The error is not related to KeyValueStore. Seems like a bug in the debugger. Can you send me your project to [email protected]? Are you using B4A v3.82? Upvote 0
The error is not related to KeyValueStore. Seems like a bug in the debugger. Can you send me your project to [email protected]? Are you using B4A v3.82?
Gary Milne Active Member Licensed User Longtime User Aug 17, 2014 #3 I'm actually using 3.80. I'll try it with v3.82. How do I get that version? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 18, 2014 #4 You can download it from the same link. If you don't have it then contact [email protected]. I'm not sure that it will solve this issue. If not please send me the project if you can. Upvote 0
You can download it from the same link. If you don't have it then contact [email protected]. I'm not sure that it will solve this issue. If not please send me the project if you can.
Gary Milne Active Member Licensed User Longtime User Aug 20, 2014 #5 I did have the link and downloaded V3.82. While the original error is in remission I do get a lot of these which seem quite similar. The location may vary however the line number always refers to an End Sub in my Activity and is always accompanied by the Unexpected command: 110 (Often 110 but it can vary). Commenting out my KVS routines (only using GetSimple and PutSimple) allows it to work normally. Also stepping quickly through with the debugger seems to work fairly reliably even with the KVS routines in place. Upvote 0
I did have the link and downloaded V3.82. While the original error is in remission I do get a lot of these which seem quite similar. The location may vary however the line number always refers to an End Sub in my Activity and is always accompanied by the Unexpected command: 110 (Often 110 but it can vary). Commenting out my KVS routines (only using GetSimple and PutSimple) allows it to work normally. Also stepping quickly through with the debugger seems to work fairly reliably even with the KVS routines in place.
Erel B4X founder Staff member Licensed User Longtime User Aug 20, 2014 #6 Again if you can I would like to go over your project and test it. Upvote 0
Gary Milne Active Member Licensed User Longtime User Aug 20, 2014 #7 I have zipped up the project and will e-mail it to you with a few brief notes. It will come from [email protected]. Thanks for your help. Upvote 0
I have zipped up the project and will e-mail it to you with a few brief notes. It will come from [email protected]. Thanks for your help.
Erel B4X founder Staff member Licensed User Longtime User Aug 21, 2014 #8 Thank you. It is related to the For loops inside Sub Globals. The globals subs should only be used for variable declaration (and assignments of primitive values). Upvote 0
Thank you. It is related to the For loops inside Sub Globals. The globals subs should only be used for variable declaration (and assignments of primitive values).
Gary Milne Active Member Licensed User Longtime User Aug 21, 2014 #9 Thanks Erel, I appreciate your help. That is a very easy fix and probably not one I would have stumbled upon easily. Can I suggest that would make an excellent addition to your compiler warnings! Upvote 0
Thanks Erel, I appreciate your help. That is a very easy fix and probably not one I would have stumbled upon easily. Can I suggest that would make an excellent addition to your compiler warnings!