BinaryConstruct/Terraria-Map-Editor — Issue #264: TEdit crashes if multiple saves are executed
Author: SinisterStairs
Created: 2012-03-06 21:28:54+00:00
State: open

If one tries to Save while another Save is currently executing, the client crashes. I noticed trying to save a world on a USB drive. (Hit ctrl-s, and while the world is still saving, hit ctrl-s again.)

This is easily avoidable, but I'm mentioning it now because of the autosave request #262. Don't allow the autosave interval to be so short that it attempts a write while another is still executing. :)

03-06-2012 16:24 v3.2.12042.0013 Error - The process cannot access the file 'E:\My Games\Terraria\Worlds\Test.wld.tmp' 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)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at TEditXNA.Terraria.World.Save(String filename, Boolean resetTime) in E:\My Games\My Terraria\BinaryConstruct-Terraria-Map-Editor-4efef71\TEditXna\Terraria\World.cs:line 391
at TEditXna.ViewModel.WorldViewModel.b__21() in E:\My Games\My Terraria\BinaryConstruct-Terraria-Map-Editor-4efef71\TEditXna\ViewModel\WorldViewModel.cs:line 466
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()