04-04-2020, 11:40 AM
Hi,
When creating shared memory, is the size declared the maximum total length of the array block or the size of each element in the array?
For example, in the following statements, is it correct to declare the size of 1 if the elements m1[0], m1[1], m1[2] are always set to an integer between 1 and 7. ( i.e m1[1]=1, m1[2]=7 ) or should the size declared be equal to the max size of all the elements in the array?
__SharedMemory sm2
sm2.Close
int* m1=sm2.Create(F"Control {computerUserGM}" 1)
thanks,
Jim
When creating shared memory, is the size declared the maximum total length of the array block or the size of each element in the array?
For example, in the following statements, is it correct to declare the size of 1 if the elements m1[0], m1[1], m1[2] are always set to an integer between 1 and 7. ( i.e m1[1]=1, m1[2]=7 ) or should the size declared be equal to the max size of all the elements in the array?
__SharedMemory sm2
sm2.Close
int* m1=sm2.Create(F"Control {computerUserGM}" 1)
thanks,
Jim