From: "Kevin OKeefe" <[EMAIL PROTECTED]> > You are probably overwriting the chunk of memory - > most of the time this is a StrLen(str) vs. StrLen(str)+1 > type of error when you allocate the chunk (the later being > the correct amount of memory). > > From: Frank Panetta [mailto:[EMAIL PROTECTED]] (snip) > > if( !hFieldText ) > > hFieldText = MemHandleNew( nMaxSize ); (snip) > > if (len > nMaxSize) > > { > > StrNCopy( pFieldText, pSrcText, nMaxSize-1); > > pFieldText[nMaxSize-1] = '\0'; > > } > > else > > StrCopy( pFieldText, pSrcText ); > > What if len == nMaxSize?
Chris Tutty Director Izyn Technologies Ltd -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
