Page 1 of 1

Save System IO Error

Posted: Mon Jan 31, 2022 4:09 am
by NotVeryProfessional
An error I've seen in the Unity Dashboard (cloud error reporting):
IOException: The process cannot access the file because it is being used by another process.

PixelCrushers.DiskSavedGameDataStorer.WriteStringToFile (System.String filename, System.String data) (at <0b3cc1a06dcd4da486dadca7e5bb9517>:0)
PixelCrushers.DiskSavedGameDataStorer.StoreSavedGameData (System.Int32 slotNumber, PixelCrushers.SavedGameData savedGameData) (at <0b3cc1a06dcd4da486dadca7e5bb9517>:0)
PixelCrushers.SavedGameDataStorer+<StoreSavedGameDataAsync>d__8.MoveNext () (at <0b3cc1a06dcd4da486dadca7e5bb9517>:0)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <a54a0c127922410a875e6369eb1b0c62>:0)
Not sure if there's anything I can do here, just passing it on, maybe something to catch?

Re: Save System IO Error

Posted: Mon Jan 31, 2022 9:11 am
by Tony Li
Hi,

I'll consider adding that as something to catch, although my initial instinct is to allow the exception to rise up to the developer's code and not intercept it, since different developer may want to handle it differently in their projects.