Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » what?

This thread is locked; no one can reply to it. rss feed Print
what?
keprast
Member #16,794
January 2018

???
look my photo.
what heap?

I dont destory any heap.
why?
_______________________
ntdll.pdb,wntdll.pdb,d3d10warp.pdb
critical error detected c0000374

bamccaig
Member #7,536
July 2006
avatar

Debug Assertion Failed!

Program: ...ments\Visual Studio 2015\Projects\Project1\Debug\Project1.exe
File: minkernel\crts\ucrt\src\appcrt\heap\heap_debug.cpp
Line: 888

Expression: _CrtIsValidHeapPointer(block)

For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)

[Chinese? Buttons]

You appear to be using invalid memory, but unfortunately you aren't given enough details to identify what. Make sure your development environment works for a simple hello world program. Then make sure your pointers are valid. Post your program if you want us to scan it for errors.

relpatseht
Member #5,034
September 2004
avatar

The heap is the name for the storage space of all allocated memory (IE: new, malloc), as opposed to the stack (where local variables go).

Getting a heap corruption error means you are either writing outside the bounds of an object created with new/malloc, or you are writting to a pointer which was already freed/deleted.

Go to: