A method and computer-readable medium are provided for saving the contents
of a memory structure stored in a volatile memory. According to the
method, corrupted portions of the memory structure are identified and an
attempt is made to repair these portions. If the corrupted portions
cannot be repaired, the saving of these portions is skipped. The
uncorrupted and repaired portions of the memory structure are then saved
to a data file stored on a mass storage device. If portions of the memory
structure cannot be repaired or skipped, an attempt is made to save only
the user data contained in the memory structure to the data file. In this
manner, the user data contained in the memory structure may be saved to a
data file even in cases of severe corruption.