←Select platform

MaximumGlobalRasterImageMemory Property

Summary

Gets or sets a value that specifies the maximum size allowed for all RasterImage object allocations.

Syntax
C#
VB
C++
public long MaximumGlobalRasterImageMemory { get; set; } 
Public Property MaximumGlobalRasterImageMemory As Long 
public: 
property int64 MaximumGlobalRasterImageMemory { 
   int64 get(); 
   void set (    int64 ); 
} 

Property Value

A long value that specifies the maximum size allowed for all RasterImage object allocations. The default value depends on the operating system.

On x86 systems, this property defaults to 1.5 GB.

On x64 systems, this property defaults to either 1.5 GB or 75 percent of the system's total physical RAM, whichever is larger.

Remarks

You can use this property to control how much memory your application is allowed to use for all RasterImage objects.

When allocating a new RasterImage object, if the new allocation causes the total memory used by all allocated RasterImage objects to exceed the value of MaximumGlobalRasterImageMemory, then the allocation will throw an exception.

Example

For an example, refer to RasterDefaults.

Requirements

Target Platforms

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly