1
0
Fork 0

TGArray: memset allocates ~1,5 GB (!) of memory for empty elevation arrays.

Change this back to the old behaviour (3x3 columns instead of 20000x20000)
This commit is contained in:
Christian Schmitt 2012-11-27 00:38:19 +01:00
parent 00a0234686
commit 3dfe15559e

View file

@ -149,7 +149,7 @@ TGArray::parse( SGBucket& b ) {
SG_LOG(SG_GENERAL, SG_DEBUG, " cols = " << cols << " rows = " << rows );
SG_LOG(SG_GENERAL, SG_DEBUG, " col_step = " << col_step << " row_step = " << row_step );
memset(in_data, 0, sizeof(int) * ARRAY_SIZE_1 * ARRAY_SIZE_1);
memset(in_data, 0, sizeof(int) * cols * rows);
SG_LOG(SG_GENERAL, SG_DEBUG, " File not open, so using zero'd data" );
}