Hi
apparently you are on the right track, but...
> It seems MemHandleSize was not including the NULL terminator in the lenght
it returned.
MemHandleSize does not know about any terminator etc. It simply returns the
real length of the allocated block.
Aren't you working with strings stored in the DB without the NULL
terminator?
Best regards,
Jan Slodicka
----- Original Message -----
From: "Richard Dumais" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Sunday, May 29, 2005 1:12 AM
Subject: Re: VFSFileDBGetRecord - Works fine but crashes when leaving my
program on Tungsten E2 Simulator
>
> Ok, I did some more testing and answered my own question about the second
buffer. It seems that I was allocating the second buffer using the exact
size as the buffer returned from VFSFileDBGetRecord (determined with
MemHandleSize), but just now I tried making it one byte larger and that
corrected the problem. It seems MemHandleSize was not including the NULL
terminator in the lenght it returned.
>
> Bye for now.
> --
> For information on using the PalmSource Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/