Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c++

debugging

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?

like image 926
cateatingpancakes Avatar asked Apr 03 '20 06:04

cateatingpancakes


1 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

like image 74
kit Avatar answered Sep 30 '22 08:09

kit