Android Question code too large for try statementcatch (Exception e)

Theera

Expert
Licensed User
Longtime User
My code adding more #Region xxx1 ...#End Region,#Region xxx2 ...#End Region,....,#Region xxxN ...#End Region in Activity_Create module
for Adding Branch from SD_Treelist library. The code can ran ,but now,it has error code. And please guide me about using Xmaxerrs,too

B4A Version: 13.40
Parsing code. (0.20s)
Java Version: 19
Building folders structure. (0.23s)
Compiling code. (0.48s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Compiling resources (4.67s)
Linking resources (2.25s)
build tools: 36.0.0, android jar: android-36
Compiling debugger engine code. Error
B4A line: 2556
End Sub
shell\src\b4a\npsoft\th\sender\bansender\main_subs_0.java:7036: error: code too large for try statement
catch (Exception e) {
^
1 error
only showing the first 1 errors, of 3 total; use -Xmaxerrs if you would like to see more
 

DonManfred

Expert
Licensed User
Longtime User
Search the forum. There are a lot of results. You should always do that if you have another issue. But it appears you NEVER do that.


All solutions tells to split the code into multiple subs
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
Refer to Erel's guide If I understand that, the code in Activity_Create module is devided as sub modules which are called by Activity_Create module. True or False.
 
Upvote 0
Top