|
Hi,
I have the same problem when I declared the text
fields in the structure as an array (e.g. char text[50]).
Regards
Arne
HI Arne Gemsa ,
In the structure that you have allocated a pointer.you had even
allocated memory for the pointer also and stored the same in the
database.And here comes the error when you write the structure into record the
pointer address is stored ..once you leave your application the dataspace
allocated gets released .now once when you again come cak to your
application and read from the location pointed by the pointer it points
to a chunck..
And remedy is to decleare a array instead of the pointer which the
data is stored in the record. char *Text; char
*ProgressText;
hope this helps you
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/
|
- Re: Store data in a struct Arne Gemsa
-