Hi, folks!

meg wrote:

> eliminated.  However, I can't figure out how to fix this.  The problem is
> definitely the MemPtrNew allocation in BuildAnswerString, but when I try and

Yup. Righto.


> free the pointer with MemPtrFree at the very end of the function, the
> database doesn't end up with the right values.  I believe that this is

Which isn't that much of a surprise because you can't really hope that a
pointer to a deallocated space points to anything useful. I'd try and
free the pointer in the function that calls BuildAnswerString. Like this:

str = BuildAnswerString();
DoSomeWorkWithTheString(str);
MemPtrFree(str);


Bye!

Matthias


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to