# Updating canvas using TApplication

**URL:** <https://root-forum.cern.ch/t/updating-canvas-using-tapplication/14596>\
**Category:** ROOT\
**Created:** [July 18, 2012, 1:39am UTC](https://root-forum.cern.ch/t/updating-canvas-using-tapplication/14596 "2012-07-18T01:39:28Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [July 18, 2012, 9:29pm UTC](https://root-forum.cern.ch/t/updating-canvas-using-tapplication/14596/10 "2012-07-18T21:29:46Z")

</div>

Hi,

`cin.ignore();`blocks the (only) threads and no event can be process. If you want to be able to interact with the canvas while waiting for user input, the easiest is to use WaitPrimitive (see for example [TPad::WaitPrimitive()](https://root-forum.cern.ch/t/tpad-waitprimitive/5765/1)).

Cheers,  
Philippe.

---

_[View the full topic](https://root-forum.cern.ch/t/updating-canvas-using-tapplication/14596)._
