BBC BASIC
« No room error message »

Welcome Guest. Please Login or Register.
Jan 23rd, 2018, 7:12pm


Cross-platform BBC BASIC (Win32, Linux x86, Android, Mac OS-X, Raspberry Pi)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: No room error message  (Read 167 times)
lvanduyn
New Member
Image


member is offline

Avatar




PM


Posts: 1
xx No room error message
« Thread started on: Jul 2nd, 2017, 12:49am »

Hi
I am a new registered user of BBC running on Win 10. My program runs and finishes and then after a few seconds this error message pops up. Any ideas as to the cause??

Larry
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 692
xx Re: No room error message
« Reply #1 on: Jul 2nd, 2017, 09:16am »

on Jul 2nd, 2017, 12:49am, lvanduyn wrote:
My program runs and finishes and then after a few seconds this error message pops up. Any ideas as to the cause??

Stating the obvious, it means you have run out of memory! The default (initial) amount of memory available for your program, plus its heap and stack, is 2 megabytes so the simplest explanation is that you are trying to create one or more large arrays etc. which require more memory than that.

If that's the cause, simply increase the amount of memory available to your program by raising HIMEM at the very start of your code. So for example if your program requires about 8 megabytes add this statement:

Code:
      HIMEM = PAGE + 8000000 

Another possibility is that you have a fault in your program's structure which is resulting in a 'memory leak', i.e. an ever-increasing use of memory as the program runs. A classic cause of such a memory leak would be attempting to jump out of a loop (e.g. a FOR...NEXT loop) using GOTO rather than EXIT.

To get more specific advice you would have to list a short program which demonstrates the issue.

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls