In order to make my application compatible with PalmOS versions before 3.2, I want to use SysErrString in my own alert form, rather than use the newer (post 3.2) ErrAlert. But SysErrString requires the calling function to have its own string buffer available.
How big must this string buffer be? What is the maximum length of any system error string?
System errors are stored in string list resources. There's no limit to the length of a single string (other than the 64K resource limit). In practice, 256 bytes is probably plenty of space; since the API has a maxLength parameter, you don't have to worry about buffer overflow.
-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Fourm Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
