So, since the device opens the last archive at the correct page when booting, it looks like the application does get the EVT_EXIT event and runs save_settings() properly. It must also have run write_cover(), as well. The question is why isn't that cover saved in the filesystem? This seems to be a problem with the OS rather than the pbimageviewer application itself. I can try adding a sync() call after writing the cover image to try to force the OS to write the data to the physical medium, but that's not guaranteed to work either. I'll PM you with a new version of the application for testing when I modify it this evening (GMT -08:00 here).
|