Saving and Loading from disk crashes


#1

Hi,

We are trying to build around the framework provided in the book to save and restore user information on the disk. The simple version we wrote crashes after a sequence of save and restore operations are performed. To perform the save operation, we press home button to initiate the write operation. The iPhone simulator is stopped and restarted again to read the previously written data.

The main change we made as compared to the example in the book is to let the view controller initiate the read operation after being passed the store location from delegate. The write to disk happens from the delegate similar to how it is done is the book.

We would really appreciate any help to pin point the root cause. The source in question can be downloaded from tinyurl.com/6aegckp

Thanks