Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple instances of the program running simultaneously causes an exception #118

Open
jceddy opened this issue Jan 6, 2020 · 1 comment
Labels
automatic Automatically generated by the application bug Something isn't working

Comments

@jceddy
Copy link
Owner

jceddy commented Jan 6, 2020

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 jceddy added the automatic Automatically generated by the application label Jan 6, 2020
@jceddy
Copy link
Owner Author

jceddy commented Jan 6, 2020

This appears to be an issue from multiple instances of the program running at the same time. Changing the title to match.

@jceddy jceddy changed the title Unhandled Exception in loadTask (Window_Loaded - Main Application) Multiple instances of the program running simultaneously causes an exception Jan 6, 2020
@jceddy jceddy added the bug Something isn't working label Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automatic Automatically generated by the application bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant