Getting error upon building CDDA

I have been trying to compile CDDA for the last couple hours, I am stuck on this error.

HEAP[Cataclysm-vcpkg-Debug-x64.exe]: Invalid address specified to RtlValidateHeap( 00000198F47A0000, 00000198FC426F30 )

It is thrown by a function in one of the SDL libraries. SDL_free to be exact.

I have installed the winDependencies, I have used the .bat file to generate the bin file and moved it to the root folder.

Everything involving vcpkg is installed, I have the 2017 version of VS, and it has the 2015 v140 framework.

I am at the end of my rope.

Any idea to fix this; has anyone encountered an error like this?

Try building a release build instead of a debug one, see if that helps.

You don’t need WinDepend. Just follow our vcpkg instruction literally.

Delete all dlls you copied from windepend folder and rebuild - any necessary dlls would be copied from vcpkg installation.

Thank you so much, this was the problem.