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

How can I limit the size of my application's state file?



Q. How can I limit the size of my application's state file?

A. There are three ways to limit the size of the application's
   state file.

   1. Completely disable the state file for your application.
      Write a handler for MSG_GEN_PROCESS_CREATE_NEW_STATE_FILE
      and simply return NullHandle. If your application needs
      to save some small amount of information between sessions,
      consider saving it in the ini file instead of to state file.
   2. Marking a resource as notDetachable will prevent objects
      in that resource from saving to state.
   3. Marking an object ignoreDirty will prevent that object
      from saving to state.