More clearly stated: At form close the extended gadget receives a callback message with a cmd value of formGadgetDeleteCmd. To delete the gadget data a call to FrmGetGadgetData() is required to retrieve the memory pointer that is to be freed using MemPtrFree(). To accomplish this, a pointer to the form containing the gadget must be obtained.
The callback message does not contain a pointer to the current form. In addition, FrmGetActiveForm() returns null. Is there a way to dynamically obtain the form pointer upon receipt of the formGadgetDeleteCmd callback message? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
