Android Question code too large for try statement

Pedro Caldeira

Active Member
Licensed User
Longtime User
Hello All,
I have a project with lots os activities, code modules, classes, etc.
Recently I started to get this message, in modules that are not touched in several months.
I have revised the code and found no try statements larger than 10 lines.
Does B4A has a limit in the number of lines? code? size of the project?
In release mode, I have no problems.
Any ideas? I'm lost here.

Error window below
 

emexes

Expert
Licensed User
Does B4A has a limit in the number of lines? code? size of the project?

From memory, output compiled bytecode is limited to 64k per... not quite sure if per Sub or per source file (module).

But that would fit your description eg 5000+ line source code file, and debug-crash-but-release-ok

Does that source file have just a single Sub, or several? If several, then try moving some of them out into a new separate source file, see if the problem goes away.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…