#: 5442 S10/Tandy CoCo
22-Jul-90 09:13:56
Sb: #Basic09 help
Fm: ARNOLD BRAUND 72257,3476
To: all
Hi,
I have a question on the usage of procedure calls in Basic09. I am
currently writing a checkbook program that is larger than 64K when all of the
seperate procedures are added up. I am using Shell+ v2.1 and gshell+ v1.24
with patches from Kevin's fastgrf.ar. My system is a Coco3, 512K, with a 20Meg
Hard drive.
Here is my problem: I start up the program in a 640 X 192, graphics
window using chwt -5. I then start my main procedure. It doesn't matter if
I use runb checbook or checbook. This main procedure is basically a
"menu" that calls in other procedures. The problem I have observed, though, is
that as the other procedures are called in and then ended, they do NOT get
released in memory. It doesn't take long before I use up my entire 64K work
space. I realize that when a procedure is called, that it eats up memory in
blocks of 8K, but I thought that this memory was freed up when that procedure
ended so that same memory was available for other called procedures. I can
make everything work fine when I use the shell "unlink procedure" command
in my main procedure as the next line following my call to a procedure.
ie. run scrprnt followed by shell "unlink scrprnt".
Maybe this IS the correct "fix", but I haven't seen it written anywhere.
I know that by merging all of the procedures together, I can save on the 8K
usage problem, but all of my procedures added together use up most of the 64K
work space. I want to get this program working smoothly and properly before I
attempt to upload it here.
thanks,
Arnie
There are 2 Replies.
|