From: "Steve" <[EMAIL PROTECTED]> > Does this behave differently in PalmOS 5 ? > > On the Emulator (M505 ROM), if I don't manually free up > the memory I allocated for the ListItems (an array of Strings), > I get warnings about leaked memory upon application exit > (Form Close). So my application frees the memory itself. > > On the Garnet Simulator, if I free the Memory I get a > MemFreePtr error when I call LstSetChoices (it seems that it > tries to free the previous list contents, so I mustn't). > When you free the memory do you call LstSetChoices() with null? This is what's done to stop Palm OS freeing the memory when it destroys the form, although I would have thought that earlier OS's would complain if you weren't doing this.
Chris Tutty -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
