|
what? |
keprast
Member #16,794
January 2018
|
I dont destory any heap. |
bamccaig
Member #7,536
July 2006
|
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. -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
relpatseht
Member #5,034
September 2004
|
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.
|
|