Ok. That last suggestion gave me some thoughts. Here's what happened. I declared a pointer as such:
Char *tptr; I then did this: pqsize = sizeof(PQ); pq = (PQ *) MemPtrNew(pqsize); tptr = (Char *) MemPtrNew(pqsize); MemMove(tptr, tpq, pqsize); While in the debugger I've noticed that after the call to: pq = (PQ *) MemPtrNew(pqsize); the address stored in pq never changes. However, when the call to: tptr = (Char *) MemPtrNew(pqsize); gave me a new address! I stepped past the MemMove() call: MemMove(tptr, tpq, pqsize); and then printed the contents of tptr like this: p *(PQ *)tptr The contents was correctly copied over! Somehow, trying to return a pointer to type PQ is fouling me up. Any ideas why this is happening? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
