# Closing Root App without ending program

**URL:** <https://root-forum.cern.ch/t/closing-root-app-without-ending-program/55017>\
**Category:** ROOT\
**Created:** [May 24, 2023, 3:15pm UTC](https://root-forum.cern.ch/t/closing-root-app-without-ending-program/55017 "2023-05-24T15:15:11Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 26, 2023, 9:56am UTC](https://root-forum.cern.ch/t/closing-root-app-without-ending-program/55017/19 "2023-05-26T09:56:19Z")

</div>

I recalled some [ancient unexplainable hack](https://root-forum.cern.ch/t/updating-canvas-using-tapplication/14596/9).

Note: maybe you need this hack only in one place (either after “Update” or after “delete”, try it).

I remember that sometimes [two “ProcessEvents” were needed (probably with only a single “Sleep”)](https://root-forum.cern.ch/t/setbatch-causes-different-graphics-output-for-pngs/19682/22) with the Linux X11 and especially with the macOS Cocoa backends.

---

_[View the full topic](https://root-forum.cern.ch/t/closing-root-app-without-ending-program/55017)._
