C
C
CodeInside2016-09-15 20:48:02
C++ / C#
CodeInside, 2016-09-15 20:48:02

Why does the project cause a breakpoint?

I wrote a project on my computer and during the execution of the program it gave an error that you see in the screenshot. Each time in some new place (either in the destructor, or in the setter, but mostly on the _getch () function). It happened that the program completely worked out everything and successfully closed. But this is rare. The fact is that I did not carry out any manipulations on the code, but simply with each new execution, some new point worked. Restarted Visual Studio - didn't help. I thought to show the teacher - everything worked fine in the academy and no breakpoints were called (although I worked on the code and compiled more than 20 times). Then he again transferred the project to his computer and again the same error began to haunt me. I have Visual Studio 2015, OS Windows 10 32bit. At the academy I use Visual Studio 2013, although there is also the 15th one, OS Windows 8.1 64bit.e23ace104b684dfcb93310253f6af5d2.pngeb001a3b780144549c5ae89e9a10fbb9.png
What is the problem?
Ignore the different project names on the screenshots. Whether simply checked creation of the new solution will relieve of this error.
And one more thing: after clicking "abort" and further starting the compilation, it throws "Unhandled exception at address 0x[address] (ntdll.dll) in AcademyGroup v1.1.exe: 0x[address]: The heap was corrupted (parameters: 0x[address] ]​)."
3ca63607e5124e1ea2eebf77a5b31e9f.png66a330fa56694740b1ffd9d49557d55c.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Romanovich, 2016-09-16
@MikalaiR

Obviously the heap is corrupted. Most likely due to inaccurate work with dynamic memory (for example, free was called twice for the same pointer)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question