Running out of memory while compiling
Running out of memory while compiling
(OP)
When compiling my QBasic program I get the message that I have run out of memory. Is there any way one can write a program in QBasic that requires more than 64K memory? I need to use an array of the size A&(56,44,8), plus a lot of other material, but the A& array blows me out of the compiler. Can I somehow increase the size of the program beyond the 64K limit that apparently the compiler is working with? Nowadays, with so much more computing power, it should be possible to work out larger programs than 64K.
Any advice would be appreciated.
Thanks, Oildad
Any advice would be appreciated.
Thanks, Oildad
RE: Running out of memory while compiling
http://www.basic.mindteq.com/
Lee
RE: Running out of memory while compiling
probably less in acuality).
For programs that do not use large arrays, try making
other programs that just have subs/functions in them with
no main code.
then load them using the load option into the main program.
When you save, a mak file is made that remembers what bas file are included.
How does this help ? Each bas file will be compiled individually then linked to make one program. each has the
64k limit.
There are libraries that allow the use of XMS and EMS memory.
There are also some switches that allow QuickBasic to use
larger arrays. See also $dynamic meta statement.
Hope that helps some
RE: Running out of memory while compiling
Reprogramming is not always easy to do. In this particular case the large array is something that will stay active most of the time during the processing of the programming, because it will be used as a decision maker.
I have been a programmer for many years, CDC 3200, CDC 6600, and then IBM. Later in my work computer programs were bought and used as a tool, and from then on I did not so much programming any more. After my retirement I am trying to pick up it up again as a hobby, and I have to readjust my thinking a bit.
Once again, thanks for all your input.
RE: Running out of memory while compiling
Their support is the best in the business too. Their forum
is outstanding.
RE: Running out of memory while compiling
Anybody know on how to bypass this problem. The statement comes from a routine used to use the mouse.
RE: Running out of memory while compiling
Start the QB editor with QB /L
That should fix the call absolute error message.
Call absolute is not included in the editor as call absolute is in Qbasic.
the L switch is of the form
/L libraryname
Without a libraryname it defaults to QB.QLB (QBX.QLB for PDS). QB.QLB (and the associated QB.LIB) contain Call absolute and Call interrupt and some other related calls.
You may need to include qb.bi in your program for the declarations (or get from qb.bi the declarations and type defs needed).