user13207305
user13207305

Reputation:

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

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?

Upvotes: 9

Views: 59312

Answers (6)

Facundo Saavedra
Facundo Saavedra

Reputation: 1

delete the space in the project name. that´s all

Upvotes: -1

nick
nick

Reputation: 1

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

Upvotes: 0

Dawid Dłuski
Dawid Dłuski

Reputation: 1

Try running codeblocks as administrator

Upvotes: -2

user14694051
user14694051

Reputation:

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

good day ..

Upvotes: 0

kit
kit

Reputation: 1183

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

Upvotes: 10

Ivan Tomas
Ivan Tomas

Reputation: 1

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

Upvotes: 0

Related Questions