>When I call LstSetSelection(pList, nIndex) with any
> value of nIndex (-1, 0, 1, etc) I get a debug ROM error message saying
> "Invalid font" with a line number of 198 in font.c
That'd happen if you have an invalid font set for the list, since one of
the things LstSetSelection does is call FntSetFont with the font of the
list. Try looking at the stack trace when you get such a message, since it
will usually be helpful.
If that isn't the cause because you're not (intentionally) changing the
font, perhaps you should check that your pList pointer is in fact accurate.
And that the list object hasn't been corrupted. Running under POSE 3.1 is
great for finding UI object corruption.
-David Fedor
Palm Developer Support
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/