DailyArenaDeckAdvisor icon indicating copy to clipboard operation
DailyArenaDeckAdvisor copied to clipboard

Multiple instances of the program running simultaneously causes an exception

Open jceddy opened this issue 4 years ago • 1 comments

An unhandled exception was detected.

Exception:

System.AggregateException: One or more errors occurred. ---> System.IO.IOException: The process cannot access the file 'C:\Users\Del-riqeo Brown\AppData\LocalLow\DailyArena\DailyArenaDeckAdvisor\database.json' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) at DailyArena.Common.Core.Database.CardDatabase.UpdateCardDatabase() at DailyArena.Common.Core.Database.CardDatabase.Initialize(Boolean useProtectedData) at DailyArena.DeckAdvisor.MainWindow.<Window_Loaded>b__90_0() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- ---> (Inner Exception #0) System.IO.IOException: The process cannot access the file 'C:\Users\Del-riqeo Brown\AppData\LocalLow\DailyArena\DailyArenaDeckAdvisor\database.json' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) at DailyArena.Common.Core.Database.CardDatabase.UpdateCardDatabase() at DailyArena.Common.Core.Database.CardDatabase.Initialize(Boolean useProtectedData) at DailyArena.DeckAdvisor.MainWindow.<Window_Loaded>b__90_0() at System.Threading.Tasks.Task.Execute()<---

log2020010519_001.txt

output_log.txt

jceddy avatar Jan 06 '20 00:01 jceddy