I am running the following code. I works fine on a symbol (OS 3.2) but it
doesn't work on a palm v. It is the FldSetTextHandle (ItemPtr,stringH) line
that gives me a bus error. Is there a maximum size this can be set to?? I
have checked the max characters for the field and that too is set to 450. 
Any Ideas??

void RestoreBigScreenStringValue(int ItemId, Char *StringValue ) 
{
        FieldPtr ItemPtr = (FieldPtr)GetObjectPtr(ItemId);
        Handle stringH;
        CharPtr stringP;
        stringH = MemHandleNew(450);
        stringP = MemHandleLock(stringH);
        
        StrNCopy( stringP, StringValue, 449 );
        FldSetTextHandle (ItemPtr,stringH);
        //FldDrawField(ItemPtr);
        
        MemHandleUnlock( stringH ); 
}

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

Reply via email to