SM.Open

Previous  Next

 

hHandle = SM.Open( name AS STRING ) AS HANDLE

 


 

Opens an existing shared memory pool with the specified name.  Returns handle if successful.  You can then use handle to read and write to the memory pool

 

Example:

 

DIM hHandle AS HANDLE

DIM did_it AS INTEGER

 

' Open the shared memory pool called "big_pool"

hHandle = SM.Open( "big_pool" )

 

' Read from variable Nils.  Wait until written

did_it = SM.Read( hHandle, "Nils", TRUE )

 

' Close pool

SM.Close( hHandle )