Article # 138, added by Geoworks, historical record
| first | previous | index | next | last |

Make non-changing resource blocks read-only



If you store read-only data in a resource block, you can mark that 
block read-only in your .GP file.  This will allow the system to 
discard the block when memory needs to be compacted.

Here's an example of setting a resource as read-only:

    resource TEXTSTRINGS data lmem read-only

For more information about resource flags, see the GP chapter of the 
C Reference book.