# Getting error upon building CDDA

**URL:** <https://discourse.cataclysmdda.org/t/getting-error-upon-building-cdda/20146>\
**Category:** The Toolbox\
**Created:** [May 22, 2019, 11:44pm UTC](https://discourse.cataclysmdda.org/t/getting-error-upon-building-cdda/20146 "2019-05-22T23:44:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bananaedmonkey](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/bananaedmonkey/32/6090_2.png) [@bananaedmonkey](https://discourse.cataclysmdda.org/u/bananaedmonkey)\
**Post date:** [May 22, 2019, 11:44pm UTC](https://discourse.cataclysmdda.org/t/getting-error-upon-building-cdda/20146/1 "2019-05-22T23:44:30Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Mantar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mantar/32/42_2.png) [@Mantar](https://discourse.cataclysmdda.org/u/Mantar)\
**Post date:** [May 23, 2019, 6:14pm UTC](https://discourse.cataclysmdda.org/t/getting-error-upon-building-cdda/20146/2 "2019-05-23T18:14:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [May 23, 2019, 6:44pm UTC](https://discourse.cataclysmdda.org/t/getting-error-upon-building-cdda/20146/3 "2019-05-23T18:44:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bananaedmonkey](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/bananaedmonkey/32/6090_2.png) [@bananaedmonkey](https://discourse.cataclysmdda.org/u/bananaedmonkey)\
**Post date:** [May 24, 2019, 3:05pm UTC](https://discourse.cataclysmdda.org/t/getting-error-upon-building-cdda/20146/4 "2019-05-24T15:05:55Z")

</div>

Thank you so much, this was the problem.
