Dear forum members,
I still have problems with an old CodeWarrior Projekt ( the SyncML client
reference implementation) that I've converted to compile with the PalmOS5.0
sdk, I've also changed the linker to the PalmOS 68k linker and converted the
user interface ressources to the PilRC format. It compiles and works on the
Tungsten-T but doesn't run on older devices. I've also reviewed the
segmentation of the App., all the segments are now < 32k, but there's still
the same error.
Running on Pose with a PalmOS4 rom it produces the following error:
Default App (1.0) just read from memory location 0x80000020. This
acces usually indicates that the application is calling a Window
Manager function without first establishing a valid DrawWindow.
and it happens in this part of the code:
void setText (Word id, CharPtr pszText, int iLength)
{
VoidHand sh;
CharPtr sp;
FieldPtr hField = (FieldPtr) GetObjectPtr (id);
sh = MemHandleNew (iLength+1);
sp = MemHandleLock (sh);
if (pszText != NULL) StrCopy (sp, pszText); else sp [0] = '\0';
MemHandleUnlock (sh);
FldSetText (hField, sh, 0, iLength+1);
FldDrawField (hField); /*the app crashes here*/
return;
}
I would appreciate any hint!
Best regards Philippe Fischer
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/