This isn't a question, just a tip/head ups for people. Spent more than a few hours wondering why all my Flash settings all of a sudden were no longer saving. I found that if I compiled under DEBUG everything was fine. However if I compiled under RELEASE nothing seemed to work/save/load. Which obviously made debugging a treat. Everything worked fine as I stepped through the code in debug....... Just realized that I previously commented out device_manager_init(). Recently testing on Android showed odd service discovery behaviour, so I had uncommented the device manager just to see if this had any affect. I had forgotten that within device_manager_init() there is a pstorage_init() call. Since I have developed my over flash storage module with my own pstorage_init() call, there are now two calls to initialize PSTORAGE. Under debug compile this doesn't show up as any issue, however all hell breaks loose compiling a RELEASE. Hopefully this can save someone else a few hours of headache. Also a good tip is to stop programming at midnight. The bugs to features ratio goes way off ;)
-DC