Dear All,
When you try to open codeBlocks and if you get error as "assesrtion failed" in any version do the following procedure to get it solved.
My error: Image Attached.
Solution.
1. Go to Run > type > %appdata%
2. Find the folder named CodeBlocks> Delete this folder
3. Re launch the CodeBlocks application. You will be prompted to select the compiler.
4. Go to setting > toolschains executables > choose compiler > and locate the MinGW folder that you have.
5. Close the CodeBlocks and it asks to save the enviroment and Save it.
6. Relaunch the CodeBlocks. you won't see the error now.