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()
[FIXED] Crashing (File.Replace)
- panda100123
- Offline
- Posts: 48
- Joined: September 4th, 2011, 11:56 pm
- Location: My house
- Sanjar Khan
- Trustee
- Offline
- Posts: 1766
- Joined: May 24th, 2011, 1:40 pm
- Location: Leiden, Zuid Holland
Re: Crashing
...
Might help if you explain what you were doing?
Might help if you explain what you were doing?
Ferrisbuler2: i will stay but i might not post cus of ollieboy
Re: Crashing
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?
Also, what version of fCraft, and what operating system are you running on?
- panda100123
- Offline
- Posts: 48
- Joined: September 4th, 2011, 11:56 pm
- Location: My house
Re: Crashing
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.
And then my error pops up... I have been noticing that /bi shows no results more often... Most likely from the error.
Re: Crashing
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?
- panda100123
- Offline
- Posts: 48
- Joined: September 4th, 2011, 11:56 pm
- Location: My house
Re: Crashing
Oh sorry
Os: Windows 7 Home premium x64
Version: Fcraft 0.604_r1155
Os: Windows 7 Home premium x64
Version: Fcraft 0.604_r1155
Re: Crashing
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
Fixed in 0.614