vecino Well-Known Member Licensed User Longtime User Apr 24, 2015 #1 Hello, in "release" mode works well. In "debug legacy" mode works well. In "debug rapid" does not work. I put some lines on "comment" mode and "debug rapid" mode works well. The problem occurs in a "Sub" which has more than 1000 lines. The error is: B4A version 4.30 Parsing code. 0.60 Compiling code. 0.92 Compiling layouts code. 0.16 Compiling debugger engine code. Error B4A line: 3179 End Sub javac 1.7.0_07 shell\src\seypos\easytouch\com\main_subs_0.java:4797: error: code too large for try statement catch (Exception e) { ^ 1 error Click to expand... Thanks and regards.
Hello, in "release" mode works well. In "debug legacy" mode works well. In "debug rapid" does not work. I put some lines on "comment" mode and "debug rapid" mode works well. The problem occurs in a "Sub" which has more than 1000 lines. The error is: B4A version 4.30 Parsing code. 0.60 Compiling code. 0.92 Compiling layouts code. 0.16 Compiling debugger engine code. Error B4A line: 3179 End Sub javac 1.7.0_07 shell\src\seypos\easytouch\com\main_subs_0.java:4797: error: code too large for try statement catch (Exception e) { ^ 1 error Click to expand... Thanks and regards.
DonManfred Expert Licensed User Longtime User Apr 24, 2015 #2 The error did explain the problem. The TRY/CATCH block is too big! How many lines are in this one try block? Usually only 1 to a few lines should be inside a try/catch Upvote 0
The error did explain the problem. The TRY/CATCH block is too big! How many lines are in this one try block? Usually only 1 to a few lines should be inside a try/catch
vecino Well-Known Member Licensed User Longtime User Apr 24, 2015 #3 Thank, DonManfred, there is none try catch. This is the code for the "Sub". Attachments totest.zip totest.zip 15.1 KB · Views: 529 Upvote 0
lemonisdead Well-Known Member Licensed User Longtime User Apr 24, 2015 #4 vecino said: there is none try catch. Click to expand... Yes, a too long sub... Can't you break it in smaller subs ? Edit : I've found it => https://www.b4x.com/android/forum/t...e-number-of-lines-in-a-sub.30383/#post-176460 Upvote 0
vecino said: there is none try catch. Click to expand... Yes, a too long sub... Can't you break it in smaller subs ? Edit : I've found it => https://www.b4x.com/android/forum/t...e-number-of-lines-in-a-sub.30383/#post-176460
vecino Well-Known Member Licensed User Longtime User Apr 24, 2015 #5 Thanks, that's the problem. Has a limit. I will break the code. Thank you very much to all, folks. Upvote 0