SM.Create

Previous  Next

 

hHandle = SM.Create( name   AS STRING, 

                     sizeKB AS INTEGER ) AS HANDLE

 


 

Create a shared memory pool of specified size and name.  Size is specified in KB.  If it doesn't exist, a new pool is created otherwise it connects to the pool with the specified name.

 

Example:

 

DIM hHandle AS HANDLE

 

' Create a shared memory pool of 1 MB

hHandle = SM.Create( "big_pool", 1024 )

 

' Write 1 to variable Nils.  Create variable if doesn't exist

SM.Write( hHandle, "Nils", 1 )

 

' Close pool

SM.Close( hHandle )