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

Differentiating static vs. dynamic LMem blocks.



Q. Is there a way to tell whether a chunk in an LMem block was created
   statically (defined in a resource), or dynamically at runtime?

A. You can use OCF_IN_RESOURCE for this. But, you will first have
   to set LMF_HAS_FLAGS (LocalMemoryFlags) when you create the
   block so that the kernel will expect ObjChunkFlags to be in
   the first chunk. (Esp currently won't create a flags chunk for
   you, so you'd have to do that yourself, if defining the resource
   statically, nor is there a way to tell UIC that you want the
   resource to have flags, except to make it an object resource).
   The kernel looks only for the LMF_HAS_FLAGS bit to decide whether
   to treat the first chunk in the block as a flags chunk.