Basic Windows
This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.
Hi, a C programmer has a question for some of you amigabasic people. I am
trying to open a screen on an interlaced window and I want to draw a circle
on it and fill it in with the PAINT command. My screen is 640×400 with 2 bit
planes (interlaced), and the window I want is from (1,1)-(630,380) on this
screen. As soon as the program attempts to execute the WINDOW statement, the
screen scrolls down a little, like when you get a GURU Med. and it says "out
of heap space"
According to the basic manual, it will allocate memory for a bit map for the
screen from the heap, (this would be 640x400x2 bits or 64000 bytes) and then
it states the window must be opened with a mode of 16 through 31, I presume
this corresponds in C to SMART_REFRESH, so there would be an additional
630x380x2 bits or 59850 bytes. This totals to 123850 bytes. Basic's
statement fre(-1) which is supposed to return the number of bytes available
in the heap, prints 229112 on my machine.
This seems like more than enough, so what is going on. Between this, and
microsoft basic constantly crashing the amiga, or beeping illegal function
calls at me and the slowness of its windows I feel like jumping up and down
on the disk very hard and throwing it out the window. I'd rather use C than
this fuss-budget basic, but the project is already started in basic. Any
ideas anybody? Thanks to any basic guru's out there, my basic rusted away
years ago.