EnTT-Pacman: Debug Assertion Failed: _CrtIsValidHeapPointer(block)

I tried to build and run this project on Windows, but I get this error:

Debug Assertion Failed: _CrtIsValidHeapPointer(block)

This line causes the error:

texture(G2D::loadSurface(path))

The exception is thrown in Simpleton/Memory/alloc.hpp, at this code:

  /// Deallocate memory
  inline void dealloc(void *const ptr) noexcept {
    operator delete(ptr);
  }

I have no idea what causes the error, or how could I fix it.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (11 by maintainers)

Commits related to this issue

Most upvoted comments

@Kerndog73 I faced with the issue on the master too, then tried the no-simpleton branch. It’s all good now, the issue is gone.