Page 1 of 1

Disk Full, project and purebasic.prefs file empty (file size: 0 Bytes)

Posted: Fri May 27, 2022 2:10 am
by Danilo
I started the IDE and did some coding. The disk/HDD was full when
I quit the PB IDE, the currently active project file (.pbp), current file, and the
PB preferences file (.prefs) was of size 0 Bytes then.

Means, if there is a disk error, like HDD full, the PB IDE overrides
files/projects/settings with 0-Byte-Files. I had 3GB free, but while
running PB a backup was started in the background and all HDD space
was occupied in the meantime.

The IDE should give file errors when the disk is out of space.
Just writing 0-Byte-Files to disk means deleting the previous file content
and this is not acceptable.

Please add proper error handling when the disk is full,
when a file (project, prefs, code file) can not be successfully written to HDD.

If you close the PB IDE and a file error occurs (like Disk Full), your
files get deleted! Currently opened file, current opened project file,
preferences file. Everything gone... without a single warning.