"Timothy Astle" <[EMAIL PROTECTED]> wrote in message
news:38579@palm-dev-forum...
>
> I can get my dropdown list to populate using the following, and numbers.
> However, when I try to use the StrPrintF(...) function to fill the list
with
> strings instead of numbers, it crashes.
>
> I know it must be something simple, but I don't notice it.
You allocate memory for the string block using
gStringsBlock = MemPtrNew(numRecords * 3);
How large are your strings? If you've got strings of 3 characters each, you
need to allocate one extra byte for the NUL terminator. If your strings are
longer, then you'll need to find some other sum that will give you the
amount of memory needed.
--
Ben Combee
Veriprise Wireless <http://www.veriprise.com>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/