RE: MemPtr Help

2003-07-02 Thread Ken
Thanks - I should have seen that it was doing a pass by value. I do need to use the non-relocatable memory (MemPtr). Ken -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

RE: MemPtr Help

2003-07-01 Thread dennis
iginal Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ken Sent: Tuesday, July 01, 2003 6:13 PM To: Palm Developer Forum Subject: MemPtr Help Hi, Below is sample code of what I would like to do (which does not work). Function BBB allocates memory and loads the buffer and the

Re: MemPtr Help

2003-07-01 Thread Sebastian Cancinos
I´d do it like this void AAA(void) { MemHandle iBuffH; UInt8* iBuffPtr=NULL; UInt16 iLen; iBuffH = MemHandleNew(1); iLen = BBB(iBuffH); iBuffPtr = MemHandleLock(iBuffH); //do something with iBuffPtr MemHandleUnlock(iBuffH); MemHandleFree(iBuffH);

MemPtr Help

2003-07-01 Thread Ken
Hi, Below is sample code of what I would like to do (which does not work). Function BBB allocates memory and loads the buffer and then AAA uses the data and then deletes the buffer. The pointer to the memory buffer does not get passed back to AAA correctly. So I have missed something in the way