Platforms to show: All Mac Windows Linux Cross-Platform

Back to FileMappingMBS class.

FileMappingMBS.DeleteFileOnClose as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Filemapping and Shared Memory MBS Util Plugin 10.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether to delete the file in the destructor.

Useful if a tempory file is used as backstore.
(Read and Write property)

Some examples using this property:

FileMappingMBS.DeleteSharedMemory as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Filemapping and Shared Memory MBS Util Plugin 10.5 ✅ Yes ❌ No ✅ Yes ✅ Yes All
Whether to delete the shared memory object on closing.

True by default after Creating a shared memory object.

On Windows the shared memory objects exist as long as someone uses them.
On Mac OS X they live until you kill them even if your application is not running.
(Read and Write property)

See also:

Some examples using this property:

FileMappingMBS.File as FolderItem

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Filemapping and Shared Memory MBS Util Plugin 10.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The file reference used for the backstore.

(Read only property)

FileMappingMBS.isWriteable as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Filemapping and Shared Memory MBS Util Plugin 10.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether opened/created the file mapping with write permission.

Opening files for reading only in order to read inside gives the operation system some optimization possibilities.
(Read only property)

FileMappingMBS.Lasterror as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Filemapping and Shared Memory MBS Util Plugin 10.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The last error code.

On Windows typically a Windows error code.
On Linux and Mac OS X typically 0 for success and other values for errors.
(Read and Write property)

FileMappingMBS.LasterrorString as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Filemapping and Shared Memory MBS Util Plugin 10.5 ❌ No ✅ Yes ❌ No ❌ No All
The string for the last error code.

Only implemented for Windows.
Returns "" on any error.
(Read only property)

FileMappingMBS.Name as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Filemapping and Shared Memory MBS Util Plugin 10.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The name used for a named shared memory object.

(Read only property)

FileMappingMBS.SharedMemorySize as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Filemapping and Shared Memory MBS Util Plugin 18.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries shared memory object size.

Only valid for shared memory objects in handle.
(Read only property)

FileMappingMBS.ShrinkFileOnClose as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Filemapping and Shared Memory MBS Util Plugin 10.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether to call ShrinkFile automatically from the destructor.

Default false.
(Read and Write property)

Some examples using this property:

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...