Skip to main content
Inspiring
August 8, 2012
Question

When PersistenceManager save() returns false...

  • August 8, 2012
  • 2 replies
  • 620 views

When PersistenceManager save() returns false what are the likely causes of the failure? Is it safe to simply retry or retry after a short delay?

The documentation is lacking with answers on these questions.

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

chris.campbell
Legend
August 9, 2012

I'm trying to track down an answer for you.  I'd also recommend cross posting this over in the Flex forums.

chris.campbell
Legend
August 10, 2012

Here's what I've been able to find out:

The code for the save() method does not give any indication why it could fail.  However, the comments at the top of the file indicate this is a Local Shared Object.  So anything that applies to LSOs in terms of failing to write to them would apply to PersistenceManager.  I would think that there's nothing wrong with retrying, but more often than not the retry would fail again (some problem with the disk keeping the LSO).

I hope this helps,

Chris