TGTextView::LoadBuffer used in a thread

Hello,

I have some calculations running in a thread. The results should be written in a
TGTextView widget.
To that end I used :
TGTextView log;

log->LoadBuffer(str.c_str());

The problem is that I get the following warning
Warning in : this method must be overridden!
and nothing is written in the textview.

I tried
TGText txt(str.c_str());
log->AddText(&str);
but it does not help (no warning this time).

Thank you for helping,

Bertrand Roessli

Sorry, my mistake. It works perfectly…