Hello ROOT people!
I've unfortunately encountered a problem with std::vectors in CINT. I'm trying to fill a std::vector with a small structures in a following simple script:
typedef struct _rrr {
int s1;
int s2;
} tR;
void VectorCrash() {
tR r1;
std::vector<tR> vr2;
for(int i=0;i<1000;i++) {
r1.s1=i; r1.s2=i/3; vr2.push_back(r1);
The script together with ROOT itself fall down in Segmentation fault
after near 500 cycle iterations.
The same program compiled and run outside ROOT (with plain gcc) works
perfectly.
The ROOT version used is 5.10.
Maybe I don't understand something? :)
Thanks in advance.
-- Best regards, Ilya Orlov.Received on Fri Aug 17 2007 - 11:49:05 CEST
This archive was generated by hypermail 2.2.0 : Fri Aug 17 2007 - 17:50:02 CEST