Ken,

Thanks a lot for taking the time to reply, I really appreciate it. The really 
strange thing is that on the S300 emlulator, simply calling TxtParamString 
seems to work. It's only the Glue version that crashes. So, based on that, and 
the information in your post, this is what I came up with:

Boolean sony_os_35_glue_bug (void) {
Err             error;
UInt32          result;
Boolean         answer = false;

error = FtrGet(sysFtrCreator, sysFtrNumOEMCompanyID, &result);
if ((error == 0) && (result == hwrOEMCompanyIDSony)) {
   error = FtrGet(sysFtrCreator, sysFtrNumROMVersion, &result);
   if ((result >= palmos_35) && (result < palmos_40))
        answer = true;
   }
return answer;
}

Then in my code, I just do this:

if (sony_os_35_glue_bug())
   p = TxtParamString(temp, sub[0], sub[1], sub[2], sub[3]);
else
   p = TxtGlueParamString(temp, sub[0], sub[1], sub[2], sub[3]);

This seems to work with all the ROMs I can find. Does it make sense and look OK 
to you? I'm going to ask the customer to test this version for me, and if it 
works OK for him, I'll go ahead and release it.

Thanks again.

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

Reply via email to