# Detected application hang message box does not respect unattended flag 

**URL:** <https://forums.unrealengine.com/t/detected-application-hang-message-box-does-not-respect-unattended-flag/2707883>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [February 17, 2026, 11:00am UTC](https://forums.unrealengine.com/t/detected-application-hang-message-box-does-not-respect-unattended-flag/2707883 "2026-02-17T11:00:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [February 17, 2026, 11:00am UTC](https://forums.unrealengine.com/t/detected-application-hang-message-box-does-not-respect-unattended-flag/2707883/1 "2026-02-17T11:00:11Z")

</div>

In some cases we run our game package with `-unattended` to support some automated processes. However, occasionally a hang might happen and the process will detect this as part of the heartbeats. The main issue is that when this is detected it will open a message box to perform the user of this hang. This message box blocks the application from exiting, in our case we are trying to run the game in unattended and would like it to immediately continue and simply exit the game.

I’ve made a local change that replaces `FPlatformMisc::MessageBoxExt` to `FMessageDialog::Open` in `ThreadHeartbeat.cpp` and `RenderingThread.cpp`. `FMessageDialog` respects the unattended flag correctly.

I assume our setup is slightly unusual but I’d like to know if there are any specific reasons NOT to use `FMessageDialog` in these areas? And if not, why this isn’t used as standard for the message boxes (there are more use cases of `FPlatformMisc::MessageBoxExt` across the wider code base)

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [February 17, 2026, 11:00am UTC](https://forums.unrealengine.com/t/detected-application-hang-message-box-does-not-respect-unattended-flag/2707883/2 "2026-02-17T11:00:14Z")

</div>

**Steps to Reproduce**  
Artificially force a hang in a game build with `-unattended` on the command line.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [February 17, 2026, 4:03pm UTC](https://forums.unrealengine.com/t/detected-application-hang-message-box-does-not-respect-unattended-flag/2707883/3 "2026-02-17T16:03:15Z")

</div>

Hi Ross,

To confirm, this issue is occurring on a Windows UE runtime correct?

Best regards

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [February 19, 2026, 5:19pm UTC](https://forums.unrealengine.com/t/detected-application-hang-message-box-does-not-respect-unattended-flag/2707883/4 "2026-02-19T17:19:29Z")

</div>

Hi Ross,

I would guess that this may be an oversight as -unattended isn’t widely used against packaged builds. I’d be happy to run your changes by the development team if you wish to share.

Best regards.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [February 18, 2026, 9:02am UTC](https://forums.unrealengine.com/t/detected-application-hang-message-box-does-not-respect-unattended-flag/2707883/5 "2026-02-18T09:02:14Z")

</div>

Hi Stéphane,

Yes, the issue happens on windows ue runtime (packaged game target).

[Attachment Removed]
