HI,
I think it looks fine, but I guess your allocation of the string-ptrs is the problem? Show us the part when you prepare the list for diplaying.
Regards Henk
Developer wrote:
I have been able to create working lists in my application but I am having trouble with creating dynamic lists that are filled up with records from a database at runtime. I have tried to follow this example " Lists With Dynamic Content " http://www.palmos.com/dev/support/docs/recipes/lists.html but keep getting this error message "MemoryMgr.c, Line: 4359, Free handle". I have been struggling with this for 2 days but without any success. There is something wrong with freeing the memory in this code in the link above: case frmCloseEvent: if (gYearListChoices) { UInt16 i; for (i=0; i<gYearListNumItems; i++) MemPtrFree((MemPtr) gYearListChoices[i]); MemPtrFree((MemPtr) gYearListChoices); gYearListChoices=0; } break; //remember to leave handled as false I dont see what is the problem. I can post my code here if required. It has been slightly modifiedas it is retrieving the elements for the list from the DB.Any pointers to any other examples which do the exact same thing that I am trying to do will be helpful. I could not find any on other newsgroup. In short I want to fill a list with records from a database at runtime and display it.Many thanks.
-- ------------------------------------------------------------------------- Henk Jonas Palm OS � certified developer
[EMAIL PROTECTED] www.metaviewsoft.de -------------------------------------------------------------------------
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
