I never explicitly call FntSetFont() in my code, but here's what I
found when I tried to narrow the error down...
I first get the font.c error when I call LstSetListChoices for the first
time to display a list on my form:
95 LstSetListChoices(lstP,processListItems,numChoices);
after which I draw the form: FrmDrawForm(FrmGetActiveForm()).
At that point, a backtrace in gdb looks like this:
(gdb) bt
#0 0x10c16738 in ErrDisplayFileLineMsg ()
#1 0x10c56e78 in FntSetFont ()
#2 0x10c6bf86 in LstSetListChoices ()
#3 0x4a332 in AppHandleEvent (eventP=0x3dee8) at PalmUI.c:95
#4 0x4a76c in PilotMain (cmd=0, cmdPBP=0x0, launchFlags=142)
at PalmUI.c:224
(gdb)
Does this mean more to someone than it does to me?
Mark
>>>Keith Rollin
That error message is displayed from FntSetFont when it is passed an
invalid ID (the ID is greater than the max ID of the current
installed fonts, or the font table entry for that ID is NULL).
You need to find out why you are calling FntSetFont. As far as I can
tell, it is not called from within WinDrawChars, so I'm not sure how
to reconcile that with your statement that you get that error message
from within it.
-- Keith Rollin
-- Palm OS Emulator engineer
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/