> DmWrite(newRecordPtr,0,&newRecord,sizeof(newRecord));

You're saving "pointers to characters" instead of character strings in your
database.  Try writing the strings themselves.   Obviously, as soon as you
unlock the text handle for the field, the pointer to that data isn't valid
anymore.  Once you free the handle to the field, the data is just plain
gone.  So, storing a pointer to data that isn't there just won't work.  You
need to store the actual string.

Your code may have other problems, but this is the obvious one.

Jeff



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

Reply via email to