Hi ViKaS, ViKaS> MemHandleLock((MemHandle)p_Str_Array);
.. skip .. ViKaS> p_SalStruct = ViKaS> (SalPersonLoginInfoPtr)MemPtrNew(sizeof(SalPersonLoginInfoStruct)); ViKaS> p_SalStruct->p_str_ID = p_Str_Array[0]; ViKaS> p_SalStruct->p_str_Name = p_Str_Array[1]; ViKaS> p_SalStruct->p_str_Password = p_Str_Array[2]; ViKaS> MemHandleUnlock((MemHandle)p_Str_Array); ViKaS> return errNone; You should save result of MemHandleLock and after that use this one for access to allocated memory. Something like this: MemHandle mHandle; MemPtr rec; Char myChar; .. skip .. rec = MemHandleLock(mHandle); myChar = * ((CharPtr)rec+10); // do something MemHandleUnlock(mHandle); Best regards, Dmitry mailto:[EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
