Acorn Arcade forums: Programming: WimpBasic & Memory
|
WimpBasic & Memory |
|
dgm (22:24 14/6/2003) rich (09:02 17/6/2003) dgm (23:46 18/6/2003) dgm (20:16 20/6/2003) pfj (19:59 26/7/2003)
|
|
Douglas McKenzie |
Message #43668, posted by dgm at 22:24, 14/6/2003 |
Member
Posts: 3
|
Hi
I just started using WimpBasic and all the examples I've tried, including tools written using WimpBasic ALL grab as much memory as possible.
The max memory of the programs (those I've the source for) say about 64K. Does anyone know how to stop this happening?
doug |
|
[ Log in to reply ] |
|
Richard Goodwin |
Message #43706, posted by rich at 09:02, 17/6/2003, in reply to message #43668 |
Dictator for life
Posts: 6828
|
How are you running them? If you're running them as stand-alone files, most programs will take whatever you've got the Next slot is set to. If you put them into application structures, you can set the WimpSlot in the !Run file - you can even set a minimum and maximum value.
Instead of going into a long boring discussion here, I suggest you take a peek into a few applications and see how they're put together to get an idea of how it's done. ________ Cheers, Rich.
|
|
[ Log in to reply ] |
|
Douglas McKenzie |
Message #43788, posted by dgm at 23:46, 18/6/2003, in reply to message #43706 |
Member
Posts: 3
|
I load the examples ie HelloWorld into WimpBasic save out the !App and run it as normal.
I've checked the !Run file and the -min and -max are set to 64k, but the program(s) still grab all free memory. Wierd...
Doug |
|
[ Log in to reply ] |
|
Douglas McKenzie |
Message #43852, posted by dgm at 20:16, 20/6/2003, in reply to message #43788 |
Member
Posts: 3
|
Hi
Just to reply to my own query.
On RiscOS 4.29 (Select 1) virtually all wimpbasic programs grab all available memory.
On RiscOS 3.1 (VirtualAcorn) my program only claims the ammount of memory I have allocated. I'll reboot into RiscOS 4.02 tonight and try that.
Doug |
|
[ Log in to reply ] |
|
Paul F. Johnson |
Message #44876, posted by pfj at 19:59, 26/7/2003, in reply to message #43852 |
Member
Posts: 54
|
This is one of the problems I'm looking at for the new version to be released by APDL, but it's got me stumped. The problem is also there in later versions of Select, but not (IIRC) under 4.02 |
|
[ Log in to reply ] |
|
|
Acorn Arcade forums: Programming: WimpBasic & Memory |