With the kind help of Dan from PalmSource I determined that StrNCompare() fails on strings larger than 32KB in size. Actually,
most of the String Manager functions will have that limitation
because they use UInt16 internally. The string I was working with was
about 38KB.
Ouch. It might help to be more specific next time about size. I saw that Int16 limit too but didn't think "a few kb long" could mean more than 30kb. Yeah, it's curious that StrNCompare stores result of StrLen() in UInt32 but StrLen() uses and returns only Int16.
A subset of the OS source can be downloaded from the development seeding area. It may be good to know how some other functions are dealing with such large strings.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
