tufanv Expert Licensed User Longtime User Jan 6, 2016 #1 Hello I am trying to port my b4a project to b4i for days. After eliminating all the errors and differences between the b4a and b4i , i started to compile my app and i got : Code: Copy shell\src\com\ctmobilesoft\bmi41\b4i_main_subs_0.java:8072: error: code too large for try statement it works good on release mode but not on debug mode so i cant fix the errors. My jobdone sub is about 1800 lines thats where the error happens. How can i fix this ? in other words: How can i break my jobdone into 2 parts easily ? ty Last edited: Jan 6, 2016
Hello I am trying to port my b4a project to b4i for days. After eliminating all the errors and differences between the b4a and b4i , i started to compile my app and i got : Code: Copy shell\src\com\ctmobilesoft\bmi41\b4i_main_subs_0.java:8072: error: code too large for try statement it works good on release mode but not on debug mode so i cant fix the errors. My jobdone sub is about 1800 lines thats where the error happens. How can i fix this ? in other words: How can i break my jobdone into 2 parts easily ? ty
Erel B4X founder Staff member Licensed User Longtime User Jan 6, 2016 #2 You need to split the sub. Just create another sub and call it: Code: Copy Sub JobDone (job As HttpJob) DoSomething(job) DoMore(job) End Sub Sub DoSomething(job As HttpJob) ... Upvote 0
You need to split the sub. Just create another sub and call it: Code: Copy Sub JobDone (job As HttpJob) DoSomething(job) DoMore(job) End Sub Sub DoSomething(job As HttpJob) ...