How do I fix "a debugging check in this application has failed" error?

Viewed 44132

I've recently managed to install Code::Blocks and a MinGW compiler on a new computer.

I have an issue with a debugger on Code::Blocks. It literally won't let me create any project and give me an error message.

The error message goes as follows:

wxWidgets Debug Alert

A debugging check in this application has failed.

../../src/common/file.cpp(361): assert ""(pBuf != __null) && IsOpened()"" failed in Write()

Here's a picture of the whole thing: [error message] img

If I press stop, then everything crashes.

If, however, I press Continue, I get this warning:

Warning

Couldn't save project C:\Users\40737\Documents\yy\yy.cbp

(Maybe the file is write-protected?)

Here's a picture: [warning message] img

If I go ahead and click okay, the same error shows up again:

A picture, again: [error shows up again] img

What is there to do?

5 Answers

All you need to do is make sure you have selected the path that you want to save. If you haven't select the path you want to create, you can see the resulting filename is showing Invalid path.

enter image description here

So after you select the path you want to create then you set your project title. After that, the invalid path message will disapper.

enter image description here

When you are creating new project just make sure you select the folder you want to save your project to.

Please, select the path while creating a new project. After this issue will be solved.

good day ..

i got this bug when i name a file with a very long name, so just in case someone have the same issue with me, try shorten your file

Try running codeblocks as administrator

Related