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

Post bugs related to the IDE here
User avatar
Danilo
Addict
Addict
Posts: 3037
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

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

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