Android Question Beta 3.00 b2 Compile Error

deltacode

Member
Licensed User
Longtime User
I have a large sub that creates many lines in a database, when compiling i get this error yet this works fine in 2.71:

B4X:
Parsing code.                           0.18
Running custom action.                  0.03
Compiling code.                         0.57
Compiling layouts code.                 0.00
Generating R file.                      0.37
Compiling debugger engine code.         Error
B4A line: 2385
End Sub
javac 1.7.0_40
shell\src\com\myname\appname\dbadapter_subs_0.java:5911: error: code too large for try statement
catch (Exception e) {
^
1 error

Update to this, compiles fine under debug legacy just under debug rapid it fails.
 

cyiwin

Active Member
Licensed User
Longtime User
I had the same problem. To get it to work, I had to go through my program and split several Subs into smaller Subs.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…