I have a quite large PB3.5 project that was made by a single BAS file (no Units). Finally, i took the time to split it into several appropriate Units (12 small Units) and related $INCLUDE files.
Before splitting it, i was able to run it inside the IDE (it has 8042 lines, 4069 statements and after compilation 3760K free memory are shown by the compilation window).
Now that it' s splitted, although i really didn' t add significant amount of code, the IDE returns this message hitting F9 after successfully loading the main BAS module (not Unit):
+-[_]----------Load File--------------+
¦ Not enough memory available to run ¦
¦ in the IDE: try PBD.EXE. Press ESC ¦
¦ IDE memory available: 167568 ¦
¦ IDE required to exec: 168480 ¦
+-------------------------------------+
I' ll go for PBD immediately, just i can' t figure out why so much additional memory is required just because i splitted the code into Units. I admit that i was expecting that splitting into Units wasn' t significantly affecting the memory requirements, or, if it did, then it was tending to reduce them.
Can someone clarify what may bring to this?
In general, having this implications made clear would be important every time one has to decide whether structuring a project by Units or not.
In particular, i' m afraid for the possibility that this error message is not the true problem and that it hides something that went wrong in my splitting process, but i can' t imagine what. The EXE runs normally as it did before splitting.
Davide Vecchi
[email protected]
-------------
Before splitting it, i was able to run it inside the IDE (it has 8042 lines, 4069 statements and after compilation 3760K free memory are shown by the compilation window).
Now that it' s splitted, although i really didn' t add significant amount of code, the IDE returns this message hitting F9 after successfully loading the main BAS module (not Unit):
+-[_]----------Load File--------------+
¦ Not enough memory available to run ¦
¦ in the IDE: try PBD.EXE. Press ESC ¦
¦ IDE memory available: 167568 ¦
¦ IDE required to exec: 168480 ¦
+-------------------------------------+
I' ll go for PBD immediately, just i can' t figure out why so much additional memory is required just because i splitted the code into Units. I admit that i was expecting that splitting into Units wasn' t significantly affecting the memory requirements, or, if it did, then it was tending to reduce them.
Can someone clarify what may bring to this?
In general, having this implications made clear would be important every time one has to decide whether structuring a project by Units or not.
In particular, i' m afraid for the possibility that this error message is not the true problem and that it hides something that went wrong in my splitting process, but i can' t imagine what. The EXE runs normally as it did before splitting.
Davide Vecchi
[email protected]
-------------
Comment