log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISCOSbits releases a new laptop solution (News:4)
- Announcing the TIB 2024 Advent Calendar (News:2)
- RISC OS London Show Report 2024 (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
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
Rich
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.
________
RichGCheers,
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