I have a weird issue with savegames. This only happens once, when the app is freshly installed - restarting the app solves the issue and saving works just fine. It also happens just on some devices.
This is the code used - I think it’s straightforward:
using (IsolatedStorageFile storage = IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null))
{
using (IsolatedStorageFileStream fs = storage.OpenFile(filename, System.IO.FileMode.Create))
{
fs.Write.....
afaik the exception is thrown at FileStream creation - any ideas would could be wrong? What puzzles me, is that it works once, tha app is restarted (and not running for the first time)
Not really related I guess - but as most games need some sort of saving the gamestate, I was hoping someone had a similar issue together with a solution