# Crash calling gClient.GetRoot() with PyROOT

**URL:** <https://root-forum.cern.ch/t/crash-calling-gclient-getroot-with-pyroot/22301>\
**Category:** ROOT\
**Created:** [December 3, 2016, 1:08pm UTC](https://root-forum.cern.ch/t/crash-calling-gclient-getroot-with-pyroot/22301 "2016-12-03T13:08:05Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [December 5, 2016, 8:14am UTC](https://root-forum.cern.ch/t/crash-calling-gclient-getroot-with-pyroot/22301/7 "2016-12-05T08:14:22Z")

</div>

You need a TThread. Take a look at:

> [@Monitor a histogram while running](https://root-forum.cern.ch/t/monitor-a-histogram-while-running/22287/1):
>
> Dear Experts, Is there a way to monitor a histogram while running a script? For example, while I run the following code in a terminal, { TH1D \* h = new TH1D("h", "h", 10, 0, 10); for ( int i = 0; i \< 1000000; i++ ) { sleep(5); h-\>Fill(2); } } Can I draw “h” from another terminal? I can definitely write it to a file, but it will generate 1000000 histograms, which I don’t want. Is there an elegant way to know the content of a histogram w…

---

_[View the full topic](https://root-forum.cern.ch/t/crash-calling-gclient-getroot-with-pyroot/22301)._
