Code::Blocks Forums

User forums => Help => Topic started by: th on December 01, 2022, 08:58:45 pm

Title: codeblocks failing to open my project
Post by: th on December 01, 2022, 08:58:45 pm
I was working on a project on codeblocks and it was working fine. I closed it and worked on another project and when I went back to the first project I got the following error:

Opening file 'C:\Users\user\Documents\Project\Project.cbp' failed!

I'm using codeblocks 20.03 on windows 10 vm.

Note: when I try to open my other project, it opens fine, the problem is in the first project.
I tried restarting the vm and using codeblocks as an administrator but nothing worked. Can someone please help me
Title: Re: codeblocks failing to open my project
Post by: Miguel Gimenez on December 01, 2022, 09:41:06 pm
Can you attach the unloadable project?
Title: Re: codeblocks failing to open my project
Post by: th on December 02, 2022, 12:40:27 pm
Kindly find it attached
Title: Re: codeblocks failing to open my project
Post by: Miguel Gimenez on December 02, 2022, 12:54:18 pm
The CBP file contains only 1313 zeros, it got corrupted somehow and it will not be usable anymore.

The possible causes are grid failures, antivirus, disk corruptions...

If you have a backup or use version control restore a previous version. If not, you must create a new project and add you code to it (and use backups or version control).
Title: Re: codeblocks failing to open my project
Post by: th on December 02, 2022, 12:55:55 pm
damn okay thank you for your speedy reply