# Why my Engine crashes when I do this?

**URL:** <https://forums.unrealengine.com/t/why-my-engine-crashes-when-i-do-this/477276>\
**Category:** UI\
**Tags:** initialization, unreal-engine, Widget, question, Blueprint, CPP\
**Created:** [January 14, 2021, 8:08pm UTC](https://forums.unrealengine.com/t/why-my-engine-crashes-when-i-do-this/477276 "2021-01-14T20:08:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_dmm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_dmm](https://forums.unrealengine.com/u/_dmm)\
**Post date:** [January 14, 2021, 8:08pm UTC](https://forums.unrealengine.com/t/why-my-engine-crashes-when-i-do-this/477276/1 "2021-01-14T20:08:28Z")

</div>

Hello!

So I’m working on a bigger project. I created an Initialize custom function in c++ for a widget. I made that BlueprintCallable. In bp I override the On Initialized function and then call my Initialize function. When I want to do this, it crashes, but when I add a 0.0sec delay before calling my Initialize function it works, but If I change something in c++ (I’m not sure if its doing this time, but it doing it sometimes after build) and build It crashes with the delay. If I set the delay to 0.1sec it works and If I set back to 0.0sec It works again, until the build which screw up the things again.

Anybody know why is that?

 ![327235-bp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/b/77bc1dfbe40e4303b5d23a060c5fb98731482d17.png)
