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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Developer wrote:
>
> > Hi all,
> >
> > I want to create a dynamic list in one of the forms. I want to fill the
list
> > with items from a database at runtime. How can I go about this?
> >
> > If there are any examples out there that will be very helpful!
> >
> > Thanks.
> >
> There are a lot of examples and even here in this group. Check the API
> for Lists and you will see the right call.
>
> Regards
> Henk
>
>
>
> --
> -------------------------------------------------------------------------
>    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/

Reply via email to