I received the error "Just read directly from memory location zero" when I
try to run the method below... There won't be any problem if I comment the
line 10 & 11.
Could someone explain the cause behind this error ...and how could I free
the memory ?
static void abc(FieldPtr pfld)
{ char* ptxt;
ptxt = (Char*) MemPtrNew(MAX_HEX_INPUT+1); //MemHandleLock(phandle);
StrCopy(ptxt,input[testIndex]);
FldSetTextPtr(pfld,ptxt); //set r
FldRecalculateField(pfld,true);
FldDrawField(pfld);
..........
.........
FldSetTextPtr(pfld,NULL); // LINE 10
MemPtrFree(ptxt); //LINE 11
}
Thanx
Regards,
Tan Kuan Eeik
[EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/