> From: Brian Smith [mailto:[EMAIL PROTECTED]]
> My specific question has to do with the data that
> a gadget can store. I know it stores a pointer to
> something (anything), but in the function FrmSetGadgetData,
> can the argument that represents the pointer to the data
> be a *handle* to the data instead of a pointer?
Yes. The gadget data can be *any* 32-bit value that you, the highly paid
professional software developer, choose to store there. The system simply
stores it for you without attempting to interpret it, so it can be a
pointer, a handle, the current temperature in Kelvins, the hash value of
your mother's maiden name, anything at all.
But with this power comes responsibility. Since only you, the highly paid
professional software developer, know if the data refers to some resource
that needs to be cleaned up later (like a handle or pointer) then you also
need to free that resource when no longer needed, since the system won't.
-slj-
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/