--- Carmen Sandiego <[EMAIL PROTECTED]> wrote: > My application stores various data in a record. I need to > access various pieces of this record several times in my > application. > > MemHandle recordH = DmQueryRecord(myDB, index); > MyRecordStruct *recordP = MemHandleLock(recordH); > MemHandleUnlock(recordH); > > My question is: Can I still access the data via recordP > or is the pointer no longer valid.
Once you unlock the handle, the OS can move the memory around if it needs to. Therefore, you should not try to use the pointer after unlocking the handle. __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards� http://movies.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
