I installed codeblocks 3 years ago but had an occasional bug that had been reported and now fixed so I reinstalled codeblocks.
Now some of my projects aren't working. The really strange thing is that some, which are very similar still are.
The projects that aren't working are failing to find data files (images mostly) which are coded to have paths that lead from where the project file is. From where the project file is, the executable is in /bin/debug/???.exe
I can also move the .exe to the folder the project file is in and everything works correctly. I don't put the exe where it is, it shows up there after being compiled and, up until today, it worked fine from its compiled location or in the folder the project-workspace is in.
I have looked through project settings/compiler settings/etc and even made changes hoping to correct things but I'm afraid I will break other things if I keep trying to fix it on my own.
of 5 projects.
1. most used - doesn't get any data files or images loaded but works perfectly if I move the exe into the folder the project is in and execute it from file viewer
2. old version of the most used - works completely as if nothing happened
3. 2nd most used project - which edits image files. It isn't loading data/image files either.
4. project that doesn't use images at all but does use data files appears to be working correctly
5. a project I wrote months ago and haven't touched since, which uses one large image file is not loading the image. I had no reason to change it after it was working properly.
so 2 projects still work 3 don't
the "bug" I was trying to fix by updating my codeblocks was one that told me the project was compiling when I tried to shut down codeblocks (but it wasn't compiling) I suspect that could be the common denominator. I might have gotten that bug on each of the programs that isn't working now the last time I had them open. I used task manager to force quit codeblocks whenever I got the bug. But then if i restarted it my programs worked normally before. I got the bug the last time I tried to shut that program down. Then I updated codeblocks.
this is the bug I was trying to fix
https://forums.codeblocks.org/index.php?topic=23952.0Perhaps I should have put this in a bug reports section but I'm hoping there is a simple fix.