S skizzo Member Licensed User Longtime User Apr 29, 2011 #1 Hi Erel and agraham look at this code. It does not work with new version of B4A. Thanks in advance. Attachments eismann_new ver 1.0-28-04-11_2.zip eismann_new ver 1.0-28-04-11_2.zip 32.5 KB · Views: 385
S skizzo Member Licensed User Longtime User Apr 29, 2011 #2 Sorry it is a thread for B4A Question Erel can you move the thread? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 29, 2011 #3 I've moved this thread. Thank you for posting it. Upvote 0
agraham Expert Licensed User Longtime User Apr 29, 2011 #4 Interestingly compiled with Alt+2 it doesn't error but compiled by pressing Alt+1 or the Run button it does - I wonder what the difference is as both produce an apk. You have a Global Lista already declared and are redeclaring it as a local but the B4A compiler doesn't seem to be catching it. I wonder whether Erel regards this as legal or not? You can reDim other variables to get a fresh instance of them so why not a Global List? Upvote 0
Interestingly compiled with Alt+2 it doesn't error but compiled by pressing Alt+1 or the Run button it does - I wonder what the difference is as both produce an apk. You have a Global Lista already declared and are redeclaring it as a local but the B4A compiler doesn't seem to be catching it. I wonder whether Erel regards this as legal or not? You can reDim other variables to get a fresh instance of them so why not a Global List?
agraham Expert Licensed User Longtime User Apr 29, 2011 #5 Ah! I see what's happening, I guess Erel does as well. The debug code generator needs to be a bit smarter! Upvote 0
Ah! I see what's happening, I guess Erel does as well. The debug code generator needs to be a bit smarter!
S skizzo Member Licensed User Longtime User Apr 29, 2011 #6 Error mesage Agraham, What does: "The debug code generator needs to be a bit smarter!" Upvote 0
agraham Expert Licensed User Longtime User Apr 29, 2011 #7 When compiling for the debugger the Basic4android compiler inserts code that identifies the line being executed and which local variables a Sub uses. In this case because of the "Dim" it is assuming that a global variable is in fact a local one and that is causing the error. Upvote 0
When compiling for the debugger the Basic4android compiler inserts code that identifies the line being executed and which local variables a Sub uses. In this case because of the "Dim" it is assuming that a global variable is in fact a local one and that is causing the error.
Erel B4X founder Staff member Licensed User Longtime User Apr 30, 2011 #9 Fixed. As agraham wrote, re-dimming a global variable was not handled correctly. Upvote 0