Hi All,
For some reason, this code keeps crashing on the DmResizeResource
line... Anyone know what's up?? Is there something else that this code
should be doing that I am forgetting?
static void SaveInfo(CharPtr theString)
{
VoidHand InfoHand;
CharPtr InfoStr;
InfoHand = DmGet1Resource('tSTR', 1000);
ErrFatalDisplayIf(InfoHand == NULL, "Could not find the resource.");
InfoHand = DmResizeResource(InfoHand, StrLen(theString) * sizeof(Char));
ErrFatalDisplayIf(InfoHand == NULL, "Could not resize resource.");
InfoStr = MemHandleLock(InfoHand);
StrCopy(InfoStr, theString);
MemPtrUnlock(InfoStr);
DmReleaseResource(InfoHand);
}
Thanks in advance,
Michael Sealand
BayNet World, Inc.
[EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html