Yes, we'd definitely need to see your source code, but offhand it sounds like one of
two things... the junk for data shows that your
pointers aren't pointing where you think they are, or you simply forgot to initialize
some variable or other.
The second case is standard C stuff we all deal with, but the first may be related to
not properly locking the record chunks and
expecting them to still be in the same place when you return. Review your Memory
Manager functions regarding locking and unlocking.
(c:\Program Files\Metrowerks\CodeWarrior\Third Party Books\Palm\Ref3.pdf) and see if
that doesn't spark something.
just guessing...,
Randyp
----- Original Message -----
From: Kourosh Bodaghi - XPAND Corp 703.742.0900 <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 08, 1999 6:48 PM
Subject: database problem
I am writing a simple application similar to the Address Book app except
less complicated. I have a simple database (several CharPtr fields) and 4
forms: a list of all the records in the database, a new record form, a
view record form and an edit record form.
I am having a very strange problem. When I am inside my application and I
add or edit records everything works fine, but when I exit and re-open my
application the data in my database gets corrupted, mostly replaced by
junk strings and symbols. I have no idea what is causing this problem and it
only occurs when I exit and re-open my application. Can you please give me
some suggestions. Let me know if I need to send my source code.
Thanks,
Kourosh Bodaghi