Plantage, pas asser de ram aloué à l'exécutable.
Bonjour à tous.
Je n'arrive pas a augmenter la mémoire ram disponible pour mon exécutable du coup mon programme plante tous simplement.
Note je suis sur QTCreator avec Mingw et voici le code ->
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
const int size = 700000000;
int *test = NULL;
test = (int* )malloc(sizeof(int)*size);
for(int x(0) ; x < size ;x++)
{
test[x] = x;
}
free(test);
return a.exec();
} |
Merci à vous pour l'écoute.