Home > Software engineering >  VB array overflow problem
VB array overflow problem

Time:09-28

I want to have a contains more than 10000 ranks of matrix data stored in a two-dimensional array, then defines a two dimensional array of length of more than 10000, but an error says overflow, would you please tell me what the other methods in VB, solve the problem of the storage of the multiline matrix (good data in the large matrix or empty, may be a total of more than 10000 data)

CodePudding user response:

There are external, where to take

CodePudding user response:

If the array value is Long (4 bytes), 10000 * 10000 array is 381 m,
And if you use the sparse matrix (member} {x, y, value), the 10000 data is only 117 k, even if you a copy again, separately to the x, y sorting convenient search first, has more than 200 k,

CodePudding user response:

Using simulated memory file, speaking, reading and writing, speaking, reading and writing,
  • Related