ModernMUD icon indicating copy to clipboard operation
ModernMUD copied to clipboard

Player files locked conflict

Open Drevarr opened this issue 4 years ago • 0 comments

Player files locked on creation preventing CharData.SavePlayer(). I can't find where a stream is left open.

:01:04 AM Trace: Character Istria (A &+CHuman Paladin) entering the realm from the menu.
8:01:04 AM Error: CharData.SendText: called with empty string.
8:01:12 AM Trace: Interpreting command: 'i' by Istria in room 200
8:01:14 AM Trace: Interpreting command: 'eq' by Istria in room 200
8:01:14 AM Error: CharData.SendText: called with empty string.
8:01:22 AM Trace: Interpreting command: 'drop torch' by Istria in room 200
8:01:22 AM Error: Error saving player file ..\player\i/ISTRIA.xml exception: System.IO.IOException: The process cannot access the file 'D:\Projects\ModernMud\player\i\ISTRIA.xml' 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)??   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)??   at MUDEngine.CharData.SaveFile(String filename) in D:\Projects\ModernMud\src\MUDEngine\CharData.cs:line 1136
8:01:22 AM Error: CharData.SavePlayer(): Unable to save player file: ..\player\i/ISTRIA.xml.

Drevarr avatar Feb 11 '21 00:02 Drevarr