>
>Anyway, I'd bet a dozen donuts that the problem is occurring in the
>HoleViewLoadDataFunc, and is probably related to those gLabels handles.
Well, it was, and surprising behaviour at that. It turns out that the field
handling routines (?) were trimming my allocated 20 byte buffer to the size
of the null-terminated string (9 bytes including null-terminator) upon
de-focusing the field.
So, on the second callback call to load the text cell, I set the dataSize
parameter to the originally-allocated size of 20 bytes and complaint is
made that the size is invalid.
So nice that this is discussed in the documentation! It means that I cannot
trust that the size of my buffer will not be changed.
Note that I'm not sure how this affects situations where you might have
more null-terminated strings following the one being edited (much like the
way the way the ToDo database is structured) - do the routines truncate all
the strings that follow the one being edited?
Erik Blake
-------------------------------------------------------------------
Icefield Tools Corporation tel: (867) 633-4264
3C Glacier Road fax: (867) 633-4217
Whitehorse, Yukon CANADA e-mail: [EMAIL PROTECTED]
Y1A 5S7 internet: http://www.icefieldtools.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/