How to fix a problem where Windows Live Photo Gallery freezes up or won't start

Windows Live Photo Gallery is a handy free photo editing program, but several readers have reported a problem whereby the application either won't start at all, or freezes up and stops working after you open it. This happens when the database that's created by WLPG gets corrupted. Here's what you can do to fix it.
1. First be sure to back up pictures you have saved in WLPG.
2. Close Windows Live Photo Gallery.
3. Click Start and in the Search box, type %userprofile%\AppData\Local\Microsoft\Windows Live Photo Gallery
4. Click OK.
5. Look for the files OLD_pictures.pd4 and OLD_Pictures.pd5. Delete these.
6. Locate files called Pictures.pd4 and Pictures.pd5 and rename them to OLD_Pictures.pd4 and OLD_Pictures.pd5
7. Restart Windows Live Photo Gallery. The database will be regenerated and this should fix the problem.