Pedro Caldeira Active Member Licensed User Longtime User Mar 3, 2023 #1 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
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
LucaMs Expert Licensed User Longtime User Mar 3, 2023 #2 https://www.google.com/search?q=sit...SAQMzLjGYAQCgAQGgAQLAAQE&sclient=gws-wiz-serp Upvote 0
E emexes Expert Licensed User Longtime User Mar 4, 2023 #3 Pedro Caldeira said: Does B4A has a limit in the number of lines? code? size of the project? Click to expand... 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
Pedro Caldeira said: Does B4A has a limit in the number of lines? code? size of the project? Click to expand... 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.
Erel B4X founder Staff member Licensed User Longtime User Mar 5, 2023 #4 The debugger adds Try / Catch blocks (as well as many other things) to all subs. You have a huge sub which you need to split. It will also be more maintainable. Upvote 0
The debugger adds Try / Catch blocks (as well as many other things) to all subs. You have a huge sub which you need to split. It will also be more maintainable.