By the way, push_back is not a problem. This crashes on the QVector constructor and I think I know why 
#include <QVector>
#include <QString>
struct StructOfDeath {
int variables;
double And;
int memberOfDeath[3000*2000];
StructOfDeath(){ variables = 0; And = 1;}
};
int main(){
QVector<StructOfDeath> vector;
vector.reserve(30);
for(int i=0;i<10;i++)
vector.push_back(StructOfDeath());
printf("Done\n");
return 0;
}
#include <QVector>
#include <QString>
struct StructOfDeath {
QString some;
QString innocent;
int variables;
double And;
int memberOfDeath[3000*2000];
StructOfDeath(){ variables = 0; And = 1;}
};
int main(){
QVector<StructOfDeath> vector;
vector.reserve(30);
for(int i=0;i<10;i++)
vector.push_back(StructOfDeath());
printf("Done\n");
return 0;
}
To copy to clipboard, switch view to plain text mode
Bookmarks