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:
parent
00a0234686
commit
3dfe15559e
1 changed files with 1 additions and 1 deletions
|
@ -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" );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue