Hello Ben,

Could you try recoding this as a call to TxtCompare? StrNCompare uses this internally, and the call to TxtCompare should be faster than StrNCompare if you know that you're dealing with a single-byte string.

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.


Thanks also to Matt for the note about StrLen() in StrNCompare(). We must seriously rewrite our function for character replacement!

Alexander.


-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to