The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
shared memory
#1
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


Messages In This Thread
shared memory - by jps01 - 04-04-2020, 11:40 AM
RE: shared memory - by jps01 - 04-10-2020, 04:31 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)