Why does this code crash UEFN when I build it?


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

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

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

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