[FIXED] Crashing (File.Replace)

Fixed bugs, solved problems, and old reports.
Locked
User avatar
panda100123
Offline
Posts: 48
Joined: September 4th, 2011, 11:56 pm
Location: My house

[FIXED] Crashing (File.Replace)

Post 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()

User avatar
Sanjar Khan
Trustee
Offline
Posts: 1766
Joined: May 24th, 2011, 1:40 pm
Location: Leiden, Zuid Holland

Re: Crashing

Post by Sanjar Khan »

...
Might help if you explain what you were doing?
Ferrisbuler2: i will stay but i might not post cus of ollieboy

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: Crashing

Post 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?

User avatar
panda100123
Offline
Posts: 48
Joined: September 4th, 2011, 11:56 pm
Location: My house

Re: Crashing

Post 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.

User avatar
PyroPyro
Offline
Posts: 381
Joined: May 25th, 2011, 4:00 pm
Location: #fCraft
Contact:

Re: Crashing

Post 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?

User avatar
panda100123
Offline
Posts: 48
Joined: September 4th, 2011, 11:56 pm
Location: My house

Re: Crashing

Post by panda100123 »

Oh sorry :(

Os: Windows 7 Home premium x64
Version: Fcraft 0.604_r1155

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: Crashing

Post 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.

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: Crashing

Post by fragmer »

Fixed in 0.614

Locked