Page 1 of 1
[FIXED] Crashing (File.Replace)
Posted: November 1st, 2011, 3:42 pm
by panda100123
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Replace(String sourceFileName, String destinationFileName, String destinationBackupFileName, Boolean ignoreMetadataErrors)
at fCraft.Paths.MoveOrReplace(String source, String destination)
at fCraft.PlayerDB.Save()
Re: Crashing
Posted: November 1st, 2011, 3:47 pm
by Sanjar Khan
...
Might help if you explain what you were doing?
Re: Crashing
Posted: November 1st, 2011, 7:28 pm
by fragmer
Looks like your copy of fCraft had problems saving the PlayerDB. It would help if you pasted the rest of the message though, with the first part.
Also, what version of fCraft, and what operating system are you running on?
Re: Crashing
Posted: November 4th, 2011, 10:56 am
by panda100123
6:50:28 AM > ERROR: PlayerDB.Save: An error occured while trying to save PlayerDB: System.IO.IOException: Unable to remove the file to be replaced.
And then my error pops up... I have been noticing that /bi shows no results more often... Most likely from the error.
Re: Crashing
Posted: November 4th, 2011, 11:18 am
by PyroPyro
panda100123 wrote:6:50:28 AM > ERROR: PlayerDB.Save: An error occured while trying to save PlayerDB: System.IO.IOException: Unable to remove the file to be replaced.
And then my error pops up... I have been noticing that /bi shows no results more often... Most likely from the error.
fragmer wrote:what version of fCraft, and what operating system are you running on?
Re: Crashing
Posted: November 4th, 2011, 7:35 pm
by panda100123
Oh sorry
Os: Windows 7 Home premium x64
Version: Fcraft 0.604_r1155
Re: Crashing
Posted: November 4th, 2011, 8:25 pm
by fragmer
I've seen this error pop up once in a while on our Freebuild as well. I'm not sure what the cause is. There may be a bug in my code that causes PlayerDB to be read/written from two threads at once, but I haven't been able to find it.
Re: Crashing
Posted: February 21st, 2012, 10:55 pm
by fragmer
Fixed in 0.614