D deltacode Member Licensed User Longtime User Oct 1, 2013 #1 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.
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.
C cyiwin Active Member Licensed User Longtime User Oct 1, 2013 #2 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
I had the same problem. To get it to work, I had to go through my program and split several Subs into smaller Subs.
Erel B4X founder Staff member Licensed User Longtime User Oct 2, 2013 #3 The best solution is to refactor your code and load the data from a file and not write the data in your code. This is a hard limit of Java. Upvote 0
The best solution is to refactor your code and load the data from a file and not write the data in your code. This is a hard limit of Java.