> Makes sense, but how long is that, exactly? If I have two forms in my
> application, and the main form initializes the data in my gadgets, and the
> other form reads data from and writes data to the gadgets (but doesn't
> display the gadgets), how do I get to the gadgets' data when I'm on the
> second form? Example: I have 5 gadgets on the main screen, and each gadget

  well.. doing that.. you should maybe initialize on startup of app
  and clean up on termination of app.

> Also (I know, this is a lot of questions...) - Right now, my initialization
> of the gadgets occurs whenever a frmOpenEvent is received by my main form
<snip>
> keep the gadgets and their data around? There has to be a way, or gadgets
> would be of very limited use...

  how about allocating a chunk of memory for your globals at startup,
  store the pointer in a feature.. and, then, get the feature and 
  point to the data area youi want to use in the gadget?

  when app is done, free memory chunk and unregister feature

// az
[EMAIL PROTECTED]
http://www.ardiri.com/    <--- free games!


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to