After talking with a far more advanced Palm developer than myself he suggested some changes that stopped all the nasty fatal crashes I was having... (Thanks to him again). I've taken the code that updates the field and isolated it into it's own routine, and changed the code to pull the tStr to this:

static Boolean LoadVersionHistory (FormPtr form) {
  MemHandle        hRsc;
  Char*            pRsc;
    ClearFieldText(fldHist);
            // Get a reference to the tSTL resource.
  // This resource is created when you make a
  // "String List" in constructor.

hRsc = DmGetResource( 'tSTR', string_versionHistory );
if ( hRsc ) {
pRsc = MemHandleLock( hRsc );
SetFldTextFromStr( fldHist, pRsc ); //put your field update code here..
MemHandleUnlock( hRsc );
DmReleaseResource( hRsc );
} return true;
}



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

Reply via email to