Author Topic: codeblocks failing to open my project  (Read 520 times)

Offline th

  • Single posting newcomer
  • *
  • Posts: 3
codeblocks failing to open my project
« 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

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1259
Re: codeblocks failing to open my project
« Reply #1 on: December 01, 2022, 09:41:06 pm »
Can you attach the unloadable project?

Offline th

  • Single posting newcomer
  • *
  • Posts: 3
Re: codeblocks failing to open my project
« Reply #2 on: December 02, 2022, 12:40:27 pm »
Kindly find it attached
« Last Edit: December 02, 2022, 06:42:09 pm by th »

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1259
Re: codeblocks failing to open my project
« Reply #3 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).

Offline th

  • Single posting newcomer
  • *
  • Posts: 3
Re: codeblocks failing to open my project
« Reply #4 on: December 02, 2022, 12:55:55 pm »
damn okay thank you for your speedy reply