I'm not an expert in Palm Programming by no means, but it sounds like junk is being written to the database record in the first place. 
I would step through the record storing code with a debugger (like in PODS) and verify that the pointer is actually being set right and receiving
the data entry.

On Apr 9, 2006, at 9:36 PM, JITHU wrote:


HI all,

II am presntly trying to develop a application in which the user enters a data that need to be saved in a pdb.The problem here is the data length is of variable length and in many cases it may be around 100 chars and in some cases it may go to 1000 chars also.
and a deceleration as such like this is required
Struct xyz
{
char *abc;
}
 
instead of
char abc[1000];
to be stored in the database
in the pointer case if i allocate a space using memhandle and store the data,the data is stored in the pdb ,but once i try to go out of my application there is a memory leak..on the other hand if i free the handle before logging out of my application ,when i try to access the information the next time, i find some junk data being present.
Please provide some work around for this problem.
--
Regards,
Jithendra Kurasala,
Software Developer.
IDEAVATE SOLUTIONS with us think its Done.
 
-- 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/

Reply via email to