0 votes

How can I check what this error is? And how to fix it? And why does it arise?

drivers/windows/fileaccesswindows.cpp:312 - Condition "fwrite(psrc, 1, plength, f) != (sizet)plength" is true

in Engine by (53 points)

Hi,
the error states that the length of the written data does not match the expected length.

Does the file even gets written?

1 Answer

0 votes

I had this error when I'd accidentally tried writing to a file that was open in the wrong mode – i.e. I had two files open, one for reading (File.READ) and the other for writing (File.WRITE), but I had accidentally written the wrong name when trying to do store_line. It couldn't write to a file that was opened for reading.

by (27 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.