TPaveLabel won't appear

Hello all,

For some reason, I cannot get TPaveLabels (or a few other objects of the pave variety) to appear when I incorporate it into my code. For example, the bottom will not draw a TPaveLabel, but when I enter the same code into CINT it works fine. Any ideas?

[code]#include “TPaveLabel.h”

int testPave(){
TPaveLabel hello(0.2,0.4,0.8,0.6,“Hello World”);
hello.Draw();
return 0;
}[/code]

Best,
Danny

You must create your object via new, othewise your object will be
automatically destroyed when leaving the scope of the function, ie

int testPave(){ TPaveLabel *hello = new TPaveLabel(0.2,0.4,0.8,0.6,"Hello World"); hello->Draw(); return 0; }

Rene

Problem solved! Thanks for your help again.