Variable-sized object may not be initialized

Hi @Karl007

You should put declaration of your variable outside the loop:

myClass* T[2];
for(Int_t i=0; i<2; i++){
    T[i]=new myClass();
}

Regards, Sergey