What can be more annoying than typing for 15 minutes and then this godforsaken code completion plugin pops up its darn window and the application crashes!
Of course, you didn't think about saving every 30 seconds while you concentrated on coding, so what now?
Here goes:As of revision 2343, Code::Blocks has a built-in crash handler. At the present time, it is only implemented under Windows XP, but it should not be too hard to add similar functionality under Linux using plain old posix signal handlers.
Note that the crash handler is
not compiled into Code::Blocks by default, as it requires functionality specific to Windows XP.
To
enable the crash handler, you have to add
WINVER=0x0501 to the #defines pane in the project options when building Code::Blocks.
Whenever the application crashes (for whatever reason), all open editors are saved to a recovery folder within your home directory. Of course, due to the nature of a crash, no claims can be made on the integrity of that data, but 99% of the time, you should be OK.
![Smiley :)](https://forums.codeblocks.org/Smileys/default/smiley.gif)
Additionally, you can choose whether to have the application terminated the usual way or take the the opportunity to step over the offending instruction, which may actually happen to work and which may allow you to do a graceful shutdown.
Hope you enjoy this little addition (well, those of you who can)
![Smiley :)](https://forums.codeblocks.org/Smileys/default/smiley.gif)