Example 1: Managing Memory with Stores
A Store is an API data type (SE_Store) created by an application to manage memory allocated by the API.
A Store manages the memory allocated for:
- An description string for the status of the last function called.
- Object’s Field data
- Data Table’s cell data
- Image’s image data
A Store may be reused for better efficiency.
Data managed by a Store is passed back from the API functions in a separate pointer.
Data is valid until the Store is freed or the Store is reused in another API call.
IMPORTANT: Make sure not to reuse the data after the Store has been reused or freed!