RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Wimp_SlotSize

WindowManager
» SWI Calls
» Wimp_SlotSize

Wimp_SlotSize

(SWI &400EC)
Entry
R0 New size of current slot, or
-1 to return size
R1 New size of next slot, or
-1 to return size
Exit
R0 Size of current slot (bytes)
R1 Size of next slot (bytes)
R2 Size of free pool (bytes)

Use

The purpose of this call is to read or set the amount of memory allocated to the current, or next application to be loaded.

Notes

The use of 32bit integers means that the returned values may be incorrect on systems with over 2GB of RAM (especially the free pool size). To avoid this, consider using Wimp_Extend (read slot size), which will return the values in units of pages.

See also

  • Wimp_Extend (read slot size)
Revised on January 13, 2020 13:45:24 by Jeffrey Lee (213) (62.252.28.250)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: WindowManager SWI Calls, WindowManager Memory Management, Message_SlotSize, Message_SetSlot, *WimpSlot, Shrinkable Dynamic Areas, Memory Limit Handler, Application Space Handler, MessageTrans_OpenFile, Wimp_Extend (read slot size)

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
  • Export
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys