# Why is Unreal freezing when compiling?

**URL:** <https://forums.unrealengine.com/t/why-is-unreal-freezing-when-compiling/467885>\
**Category:** C++\
**Tags:** compiling, c-build-fail, unreal-engine, question, CPP\
**Created:** [July 9, 2020, 5:13am UTC](https://forums.unrealengine.com/t/why-is-unreal-freezing-when-compiling/467885 "2020-07-09T05:13:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ProgrammingPaul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ProgrammingPaul](https://forums.unrealengine.com/u/ProgrammingPaul)\
**Post date:** [July 9, 2020, 5:13am UTC](https://forums.unrealengine.com/t/why-is-unreal-freezing-when-compiling/467885/1 "2020-07-09T05:13:14Z")

</div>

I just installed VS 2019. When I click on add a new C++ file while compiling it freezes at 86%. I tried to do a work around where I went directly to VS, and created C++ files there. But, VS is not recognizing some files which are specific to Unreal.

So, I’m stuck. How do I get Unreal to quit freezing while compiling or what is a work around to this issue?

---

<div class="post-metadata">

**Author:** ![Crispy\_Penguin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Crispy\_Penguin](https://forums.unrealengine.com/u/Crispy_Penguin)\
**Post date:** [July 9, 2020, 11:49am UTC](https://forums.unrealengine.com/t/why-is-unreal-freezing-when-compiling/467885/2 "2020-07-09T11:49:20Z")

</div>

Try turning off Automatically Compile Newly Added C++ Classes in Editor preferences, then add your classes. After all classes has been added, go to File → “Refresh Visual studio project”.

This will allow you to compile from Visual Studio.

---

<div class="post-metadata">

**Author:** ![amir\_hm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@amir\_hm](https://forums.unrealengine.com/u/amir_hm)\
**Post date:** [May 25, 2023, 12:47pm UTC](https://forums.unrealengine.com/t/why-is-unreal-freezing-when-compiling/467885/3 "2023-05-25T12:47:09Z")

</div>

It is working for me, thanks
