Click or drag to resize

IMcResourceManagerSetMemoryLimit Method

Controls the memory limits that determine the maximum amount of memory available for a given use (memory type).

Namespace:  MediaCy.IQL.Engine
Assembly:  MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
Syntax
VB
Sub SetMemoryLimit ( 
	Type As mcMemoryType,
	PcntOrMBytes As Double
)

Parameters

Type
Type: MediaCy.IQL.EnginemcMemoryType
PcntOrMBytes
Type: SystemDouble
Remarks
The values assigned by this method are exposed as the MemoryMax property. mcmtImageMemory type: The percentage of usable physical memory (see below) used for all managed image storage before swapping to disk occurs. This is equivalent to McImages::MemoryUsageLimit. The same value can be expressed as MBytes if the type is specified as mcmtImageMemoryMBytes. mcmtVirtualMemory type: The percentage of virtual memory reserved image manager and ReserveMemory use. Defaults to 90% of the total virtual memory. This is equivalent to (100-McImages::MemoryVirtualReserve). The same value can be expressed as MBytes if the type is specified as mcmtVirtualMemoryMBytes. mcmtPhysicalMemory type: The percentage of usable physical memory (see below) that is reservable by the ReserveMemory method; this value will always be no smaller than the mcmtImageMemory type of memory, but it is allowed to be larger (up to 100%). The same value can be expressed as MBytes if the type is specified as mcmtImageMemoryMBytes. "Usable physical memory" is total physical memory minus an amount reserved for use by other processes, limited by the actual memory consumption of other running processes. It is the maximum amount of physical memory that is allowed for algorithm use; trying to use 100% of it is likely to result is decreased performance due to memory page-file swapping. Whenever this method is called, the usable physical memory limit is dynamically recalculated to account for changes in memory consumption by external applications. A PropertyChanged( ID_IMcResourceManager_MemoryMax, type) event is fired.
See Also