# App.closing event not firing when last window is closed

**URL:** <https://forum.xojo.com/t/app-closing-event-not-firing-when-last-window-is-closed/86486>\
**Category:** Linux\
**Created:** [September 11, 2025, 7:13pm UTC](https://forum.xojo.com/t/app-closing-event-not-firing-when-last-window-is-closed/86486 "2025-09-11T19:13:10Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Stefan\_von\_Allmen](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/e5b9ba/32.png) [@Stefan\_von\_Allmen](https://forum.xojo.com/u/Stefan_von_Allmen)\
**Post date:** [September 13, 2025, 4:19pm UTC](https://forum.xojo.com/t/app-closing-event-not-firing-when-last-window-is-closed/86486/13 "2025-09-13T16:19:22Z")

</div>

> As a workaround/test you could try implementing your own auto quit by adding a method to App:

Does this now really work?

For me, (see [App keeps running](https://forum.xojo.com/t/app-keeps-running/80439)) this approach resulted in a crash/segfault.

I ended up using a timer to do the checking and quitting.

---

_[View the full topic](https://forum.xojo.com/t/app-closing-event-not-firing-when-last-window-is-closed/86486)._
