I am having a problem with TxtPrepFindString() on the Emulator with
the color OS3.5 ROM. (English, DR 4, nondebug). Is it supposed to
work correctly? I keep getting a crash with error saying "Textmgr.c
line 945 Dest buffer too small".

I'm trying to modify the global search/find routine
by putting in my own text string.  This is the code:


intErr = FtrGet(sysFtrCreator, sysFtrNumIntlMgr,&value);

if(intErr) {
        convertT = GetCharCaselessValue();
        n = 0;
        while(f->strAsTyped[n]) {
                f->strToFind[n] = convertT[f->strAsTyped[n]];
                n++;
                }
        f->strToFind[n] = 0;

} else {
        TxtPrepFindString(&(f->strAsTyped[0]),
&(f->strToFind[0]),maxFindStrLen+1);
        }


This works on the Japanese Workpad OS3.1, so I believe the txtprepfindstring is
being called correctly, no? In any case, if I change the maxFindStrLen+1 to
something certainly small, like 5, I get the same error....

Thanks for any thoughts on this.

Rick Bram



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to