# Why does this code crash UEFN when I build it?

**URL:** <https://forums.unrealengine.com/t/why-does-this-code-crash-uefn-when-i-build-it/819922>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, crash, question, fortnite\
**Created:** [March 25, 2023, 5:40am UTC](https://forums.unrealengine.com/t/why-does-this-code-crash-uefn-when-i-build-it/819922 "2023-03-25T05:40:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimewornTincan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TimewornTincan](https://forums.unrealengine.com/u/TimewornTincan)\
**Post date:** [March 25, 2023, 5:40am UTC](https://forums.unrealengine.com/t/why-does-this-code-crash-uefn-when-i-build-it/819922/1 "2023-03-25T05:40:03Z")

</div>

![Screenshot 2023-03-24 195246](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/3/9e325b499b07c5b861d273393d7036015c7f1b03.jpeg)  
 ![Screenshot 2023-03-24 195516](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/c/21c80a5d8a9faafadcfa5a6d6c7a4786df2d8325.jpeg)

It also makes my project inaccessible until I delete the device it’s in off my PC.

---

<div class="post-metadata">

**Author:** ![Dig\_Squid](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dig_squid/32/1145423_2.png) [@Dig\_Squid](https://forums.unrealengine.com/u/Dig_Squid)\
**Post date:** [March 27, 2023, 7:33am UTC](https://forums.unrealengine.com/t/why-does-this-code-crash-uefn-when-i-build-it/819922/2 "2023-03-27T07:33:10Z")

</div>

Would you mind posting the actual text of of your code, rather than a screenshot?

---

<div class="post-metadata">

**Author:** ![TimewornTincan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TimewornTincan](https://forums.unrealengine.com/u/TimewornTincan)\
**Post date:** [March 29, 2023, 8:11pm UTC](https://forums.unrealengine.com/t/why-does-this-code-crash-uefn-when-i-build-it/819922/3 "2023-03-29T20:11:59Z")

</div>

Sorry, I’ll do that next time, someone else helped me on another site.

---

<div class="post-metadata">

**Author:** ![sonictke](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sonictke/32/924209_2.png) [@sonictke](https://forums.unrealengine.com/u/sonictke)\
**Post date:** [March 29, 2023, 10:41pm UTC](https://forums.unrealengine.com/t/why-does-this-code-crash-uefn-when-i-build-it/819922/4 "2023-03-29T22:41:37Z")

</div>

Hi @TimewornTincan:

I’m fairly sure that the issue you’re running into is that you’re not invoking overloaded functions (i.e. `SpongeMessage.Show` should be `SpongeMessage.Show()`) immediately. Currently, overloaded functions must be immediately invoked. Unfortunately our semantic analyzer didn’t catch this and the code generator failed when trying to do opcode generation for your code. I have a working fix submitted internally for review which will turn that into a semantic analysis warning (i.e. you should see red squiggly lines in VS Code in the future with that syntax telling you that there’s a syntax issue) and this should be included in an upcoming release.

This has been reported before in another thread as well: [Project crashes with EXCPETION\_ACCESS\_VIOLATION - #6 by sonictke](https://forums.unrealengine.com/t/project-crashes-with-excpetion-access-violation/817009/6)
