# Unreal engine keeps crashing even after deleting the error file

**URL:** <https://forums.unrealengine.com/t/unreal-engine-keeps-crashing-even-after-deleting-the-error-file/478189>\
**Category:** C++\
**Tags:** crash-on-launch, unreal-engine, UE4, CPP, question\
**Created:** [February 3, 2021, 12:13pm UTC](https://forums.unrealengine.com/t/unreal-engine-keeps-crashing-even-after-deleting-the-error-file/478189 "2021-02-03T12:13:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![the\_bat\_2102](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@the\_bat\_2102](https://forums.unrealengine.com/u/the_bat_2102)\
**Post date:** [February 3, 2021, 12:13pm UTC](https://forums.unrealengine.com/t/unreal-engine-keeps-crashing-even-after-deleting-the-error-file/478189/1 "2021-02-03T12:13:04Z")

</div>

I got an error in my gameinstance.cpp file. So i deleted the ,h and .cpp files, but when I launch unreal engine, it still crashes referencing the two gameinstance.cpp file even though it is not there in the project anymore.

---

<div class="post-metadata">

**Author:** ![Alekann01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alekann01](https://forums.unrealengine.com/u/Alekann01)\
**Post date:** [February 3, 2021, 7:15pm UTC](https://forums.unrealengine.com/t/unreal-engine-keeps-crashing-even-after-deleting-the-error-file/478189/2 "2021-02-03T19:15:17Z")

</div>

Hi the\_bat\_2102

How did you delete the files? If you only deleted them in Visual Studio, then you only removed them from your solution and not from the project itself.

1. Close Unreal and Visual Studio

2. Using Windows Explorer, go to the directory which contains the problem files and delete them manually.

3. Delete the “Intermediates” directory from the project.

4. Right click the .uproject and select “Generate Visual Studio Files”

5. Open the project.

6. Make sure under maps and modes (in project settings) than you have selected the correct GameInstance and that it is still not referencing the previous GameInstance.

Hope this helps.

Alex

---

<div class="post-metadata">

**Author:** ![the\_bat\_2102](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@the\_bat\_2102](https://forums.unrealengine.com/u/the_bat_2102)\
**Post date:** [February 4, 2021, 4:15am UTC](https://forums.unrealengine.com/t/unreal-engine-keeps-crashing-even-after-deleting-the-error-file/478189/3 "2021-02-04T04:15:52Z")

</div>

yeah, I did that it still crashes, referencing the deleted files.

---

<div class="post-metadata">

**Author:** ![Alekann01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alekann01](https://forums.unrealengine.com/u/Alekann01)\
**Post date:** [February 4, 2021, 10:24am UTC](https://forums.unrealengine.com/t/unreal-engine-keeps-crashing-even-after-deleting-the-error-file/478189/4 "2021-02-04T10:24:08Z")

</div>

Can you send the crash logs, please?

They are located: ProjectName/Saved/Logs.

Thanks

---

<div class="post-metadata">

**Author:** ![the\_bat\_2102](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@the\_bat\_2102](https://forums.unrealengine.com/u/the_bat_2102)\
**Post date:** [February 4, 2021, 1:25pm UTC](https://forums.unrealengine.com/t/unreal-engine-keeps-crashing-even-after-deleting-the-error-file/478189/5 "2021-02-04T13:25:28Z")

</div>

It worked, so I was using visual studio code which kept on crashing, the I changed to visual studio. This solved the problem. Thank you for your time.

---

<div class="post-metadata">

**Author:** ![k\_rajesh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@k\_rajesh](https://forums.unrealengine.com/u/k_rajesh)\
**Post date:** [July 16, 2023, 8:52pm UTC](https://forums.unrealengine.com/t/unreal-engine-keeps-crashing-even-after-deleting-the-error-file/478189/6 "2023-07-16T20:52:24Z")

</div>

I also deleted cpp files and header files, after closed VS and UE, then deleted Intermediate folder and regenerated project, then build solution done, after this compiled from VS Game crashing, please guide me to come out of this.
