I am having a problem trying to print a vector of 2 000 000 rows x 4 columns of dates and float and display it into a qTable. Around row 400 000 rows, the application cores. with the following error message :
std::bad_alloc()
Bizarrely enough :
myTable->setNumRows(2000 000);
myTable->setNumCols(4);
myTable->setNumRows(2000 000);
myTable->setNumCols(4);
To copy to clipboard, switch view to plain text mode
is fine,
but the program cores in the middle of this loop :
for(int line=0; line < 3000000; ++line)
{
....
myTable->setText(line,0,"dummy string");
....
}
for(int line=0; line < 3000000; ++line)
{
....
myTable->setText(line,0,"dummy string");
....
}
To copy to clipboard, switch view to plain text mode
I have 2 gig or RAM + 4 gig of swap, so I I do not think that I run out of memory.
Does anybody have an idea ?
Thanks.
Tuan.
Bookmarks