Hi community, yesterday my app worked without errors, but today there is the following message, when I want to compile the code in Debug-Modus: B4A Version: 10.60 Parse den Code. (1.00s) Java Version: 8 Building folders structure. (0.14s) Führe individuellen Aktion aus. (0.33s)...
www.b4x.com
and I hit a similar one in a code module with no try/catch at all
since my project is growing larger every day (actually 170 files, 3MB source code) I'm worried about hitting some hard limit later on in development
is there any reference to limits/constraints of the B4X platform?
Most likely it is just a method that has grown to big, not the overall project. You should split it up in sub methods. I had it recently also in a REST API processor method that processed a lot of sub paths. I just made separate subs for each path and called them in the main sub and the problem went away. I think one method can only have about 64K characters and with debugging enabled, your code is twice the size of your code at compiling because it also has to inject debugging lines in the java code. So sometimes it does work in release mode, but is to big in debug mode.
I solved that specific issue just by splitting code, as you described, but I’m worried about limits that I may not have met yet.
What if, for example, a project would be limited to 255 files, or classes?
I just would like to know that in advance.
Most likely it is just a method that has grown to big, not the overall project. You should split it up in sub methods. I had it recently also in a REST API processor method that processed a lot of sub paths. I just made separate subs for each path and called them in the main sub and the problem went away. I think one method can only have about 64K characters and with debugging enabled, your code is twice the size of your code at compiling because it also has to inject debugging lines in the java code. So sometimes it does work in release mode, but is to big in debug mode.