Compiling QBASIC AFTER BLOAD

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
MONNA

Compiling QBASIC AFTER BLOAD

Post by MONNA »

I have a reject trying to compile a file where I put some pictures on screen.
It works well before compilation but launching compilation, I first had a reject at the level of the DIM instruction but released it by tuning the bytes values:
DIM BLB%(32765) that looks to b e accepted
and now it is a new reject "not enough user's memory"
and the compiler gives 42248 free octets and warnings
0030 and 0002
To what could this be due? My computer (old and may be having not enough memory)?The compiler with an arrow points to the word SCREEN .Is it a screen memory issue? What is this memory?What is its limit? How to know or calculate it?
The screen used is SCREEN 12.
User avatar
lurah-
Veteran
Posts: 206
Joined: Mon Nov 01, 2004 10:47 am
Location: Finland
Contact:

Re: Compiling QBASIC AFTER BLOAD

Post by lurah- »

MONNA wrote: DIM BLB%(32765) that looks to b e accepted
You dont have ram left for compiler anymore.
Monna

BLOAD

Post by Monna »

Thought the total memory available was 64000 and something.
Do you mean that the difference ( the 42 248 unused) is not enough for the compiler?If so what can be done?
MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post by MystikShadows »

you might want to try this and see if it helps

'$DYNAMIC
DIM BLB%()

' later before you need to, initialize the array
REDIM BLB%(32765)

This will create the array on the heap instead of the 64Kb data segment. should free you up more space..

let me know
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
MONNA

BLOAD Etc

Post by MONNA »

To MYSTIKSHADOWS:
It works with the DYNAMIC option.
SUPER!
Post Reply