Class TSharedMemory (unit sharedmm)

Inherits from

TComponent

--------------------------------------------------------------------- TSharedmemory 1.1 for 32-bit Delphi. Written 1996 by Arthur Hoornweg (hoornweg@hannover.sgh-net.de) This little component allows applications to share a block of memory. It is the preferred method to exchange data between 32-bit Applications. It is freeware; If it proves useful to you, drop me a mail. -------------------------------------------------------------------- Platforms: WIN95 and NT. Properties: Blockname -This is a unique name that identifies the memory block. No backslashes, colons etc. allowed; it is NOT a "file" name. Blocksize: -The size of the block (should be kept constant for all applications accessing a given shared memory block) Memory: -gives you a pointer to the shared memory block! BlockExists -FALSE if you have just created the first instance of the block, TRUE otherwise. This property can be used to determine if a data server resides in memory....

Constructors


constructor Create(AOwner: TComponent);

Public-Deklarationen


Functions

destructor Destroy;

to virtual memory

Procedure Alloc;

Protected-Deklarationen

Procedure Dealloc;


Procedure Setfname (const name:String);


Procedure setfSize (size:Longint);


Properties

property BlockExists : Boolean


property BlockName : String


property BlockSize : Longint

Published-Deklarationen

property Memory : Pointer


Events

Variables

fblockexists : boolean;


FMappingHandle : THandle;

Private-Deklarationen

FMemory : Pointer;


Fname : String;


Fsize : Longint;



Constructors


constructor Create(AOwner: TComponent);

Public-Deklarationen


Functions


destructor Destroy;

to virtual memory


Procedure Alloc;

Protected-Deklarationen


Procedure Dealloc;


Procedure Setfname (const name:String);


Procedure setfSize (size:Longint);


Properties


property BlockExists : Boolean


property BlockName : String


property BlockSize : Longint

Published-Deklarationen


property Memory : Pointer


Events


Variables


fblockexists : boolean;


FMappingHandle : THandle;

Private-Deklarationen


FMemory : Pointer;


Fname : String;


Fsize : Longint;