Specifies memory usage fields for the RT Application Loader.
typedef struct tagProcessAttributesEx { DWORD PoolMin; DWORD PoolMax; DWORD VsegSize; DWORD ObjDirSize; DWORD WaitForInit; } PROCESSATTRIBUTESEX, *LPPROCESSATTRIBUTESEX;
PoolMin
dwPoolMin
or PoolMin
value exceeds dwPoolMax
or PoolMax
, the RT Application Loader exits. If the value is 0 (zero), the value reverts to system defaults.
PoolMax
The maximum amount of memory available for dynamic memory allocation is dwPoolMax or PoolMax minus static memory used for the code, data and stack and RT kernel overhead.
If the dwPoolMax or PoolMax value is less than dwPoolMin or PoolMin, the RT Application Loader exits.
To borrow all available memory, enter 0xFFFFFFFF.
VsegSize
The virtual segment size must be a minimum of 8 Mb. The value of Vseg rounds up to the next 4 Mb boundary. For example, if you enter 5 Mb, the RT Application Loader rounds the value to 8 Mb.
ObjDirSize
INtime software's RT kernel allocates 16 bytes per entry.
WaitForInit
If values of 0 are used for PoolMin, PoolMax, VsegSize, or ObjDirSize, the system default values are used.
Example:
PROCESSATTRIBUTES pa; pa.PoolMin = 0; // use system default pa.PoolMax = 0; // use system default pa.VsegSize = 12*1024*1024; // set vseg to 12 megabytes pa.ObjdirSize = 0; // use system default