By the way, push_back is not a problem. This crashes on the QVector constructor and I think I know why

Qt Code:
  1. #include <QVector>
  2. #include <QString>
  3.  
  4. struct StructOfDeath {
  5. QString some;
  6. QString innocent;
  7. int variables;
  8. double And;
  9. int memberOfDeath[3000*2000];
  10. StructOfDeath(){ variables = 0; And = 1;}
  11. };
  12.  
  13. int main(){
  14.  
  15. QVector<StructOfDeath> vector;
  16. vector.reserve(30);
  17. for(int i=0;i<10;i++)
  18. vector.push_back(StructOfDeath());
  19. printf("Done\n");
  20. return 0;
  21. }
To copy to clipboard, switch view to plain text mode