Sharing Violation, ES2 2.6.7
Posted: Wed Apr 27, 2016 2:00 am
One of my users (many users actually) are unable to save games. This user is seeing a Sharing Violation from within ES2. I'm running ES2 version 2.6.7 on unity 5.2.3f1. Any ideas what this is caused by? Seems to be prevalent on windows 10, but that may not be relevant. The file gamedata.bin uses encryption, and this error is occurring during application shutdown while I attempt to save the game. I've re-written the system to use writers/readers and I now save the game before exit, but I'd still like to understand what the cause of this error is.
_____
Saving to location: C:/Users/Declan/AppData/LocalLow/IndimoLabs/Vanishing Realms
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
IOException: Sharing violation on path C:\Users\Declan\AppData\LocalLow\IndimoLabs\Vanishing Realms\gamedata.bin
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode) [0x00000] in <filename unknown>:0
at ES2FileUtility.CreateFileStream (System.String path, ES2FileMode filemode) [0x00000] in <filename unknown>:0
at ES2FileStream.CreateStorageStream () [0x00000] in <filename unknown>:0
at ES2FileStream.Store () [0x00000] in <filename unknown>:0
at ES2Writer.Save (Boolean checkForOverwrite) [0x00000] in <filename unknown>:0
at ES2Writer.Save () [0x00000] in <filename unknown>:0
at ES2.Save[String] (System.String param, System.String identifier, .ES2Settings settings) [0x00000] in <filename unknown>:0
at TheInventory.SaveGeneralInventoryItems () [0x00000] in <filename unknown>:0
at TheInventory.Save (System.String playerName) [0x00000] in <filename unknown>:0
at TheApplication.OnApplicationQuit () [0x00000] in <filename unknown>:0
_____
Saving to location: C:/Users/Declan/AppData/LocalLow/IndimoLabs/Vanishing Realms
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
IOException: Sharing violation on path C:\Users\Declan\AppData\LocalLow\IndimoLabs\Vanishing Realms\gamedata.bin
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode) [0x00000] in <filename unknown>:0
at ES2FileUtility.CreateFileStream (System.String path, ES2FileMode filemode) [0x00000] in <filename unknown>:0
at ES2FileStream.CreateStorageStream () [0x00000] in <filename unknown>:0
at ES2FileStream.Store () [0x00000] in <filename unknown>:0
at ES2Writer.Save (Boolean checkForOverwrite) [0x00000] in <filename unknown>:0
at ES2Writer.Save () [0x00000] in <filename unknown>:0
at ES2.Save[String] (System.String param, System.String identifier, .ES2Settings settings) [0x00000] in <filename unknown>:0
at TheInventory.SaveGeneralInventoryItems () [0x00000] in <filename unknown>:0
at TheInventory.Save (System.String playerName) [0x00000] in <filename unknown>:0
at TheApplication.OnApplicationQuit () [0x00000] in <filename unknown>:0