Hi Bob Yes - as soon as you said the Category code was ok - i started to look elsewhere.
I had originally stepped thru the whole database adding strings to a list using the record index as the array index. I changed it to step thru the category, allocating enough memory for that category's number of items. I forgot that the index values aren't sequential when some of the records are in another category - I got to the end of the database and the index was greater than the number of items - it looks as if memory access wrapped round to the beginning of the list ! I expected to take about a week to write my application - it's been about 2 months so far - but I know a lot of stuff about PalmOS now !! Thanks again for your input - and to the others that contributed. Paul Sanders -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
