Re: Please Help!! I've Lost All My Code
Hi Gary et al,
Yesterday, an open function in the code editor got written over by another open function. I know a few others have occasionally seen this happen.
Since my utility code under development messes with a lot of things associated with the code editor, I would tend to blame my code at the time (although it is reliable when I release it).
The point is, I needed to recover the last good copy of the function which the previous day's backup was not useful. So I created on a copy of the ALM file, ran my MemoFix function, found a few bugs in the MemoFix function which are now corrected, and was able to recover a previous version made several hours earlier.
What was interesting was that I found 21 copies of the needed function from many dates. Ones changed later were generally later in the memo file, although the most recent copy which had the other function that overwrote it, was earlier in the file. This occurred because the code written was smaller, and the 1st unused spot that is available and able to contain the code being written is used.
If I had compacted the database or dictionaries, only the most recent copy would be there.
So if problems happens, it is important to have backups 1st. If not, at least don't compact the database.
Make a copy of the database files the moment you have a problem. However, if you have a hard drive problem, or need to recover files that have been deleted or copied over, take the drive offline and then you need to work at recovering that information from the deleted files 1st.
Hi Gary et al,
Yesterday, an open function in the code editor got written over by another open function. I know a few others have occasionally seen this happen.
Since my utility code under development messes with a lot of things associated with the code editor, I would tend to blame my code at the time (although it is reliable when I release it).
The point is, I needed to recover the last good copy of the function which the previous day's backup was not useful. So I created on a copy of the ALM file, ran my MemoFix function, found a few bugs in the MemoFix function which are now corrected, and was able to recover a previous version made several hours earlier.
What was interesting was that I found 21 copies of the needed function from many dates. Ones changed later were generally later in the memo file, although the most recent copy which had the other function that overwrote it, was earlier in the file. This occurred because the code written was smaller, and the 1st unused spot that is available and able to contain the code being written is used.
If I had compacted the database or dictionaries, only the most recent copy would be there.
So if problems happens, it is important to have backups 1st. If not, at least don't compact the database.
Make a copy of the database files the moment you have a problem. However, if you have a hard drive problem, or need to recover files that have been deleted or copied over, take the drive offline and then you need to work at recovering that information from the deleted files 1st.
Comment