←Select platform

MaximumConventionalMemory Property

Summary

Maximum size of continuous conventional memory in bytes to use when creating a RasterImage object.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public long MaximumConventionalMemory { get; set; } 
Public Property MaximumConventionalMemory() As Long 
public long MaximumConventionalMemory { get; set; } 
@property (nonatomic, assign) long MaximumConventionalMemory 
public long getMaximumConventionalMemory(); 
public void setMaximumConventionalMemory(long value); 
get_MaximumConventionalMemory(); 
set_MaximumConventionalMemory(value); 
Object.defineProperty('MaximumConventionalMemory'); 
public: 
property bool MaximumConventionalMemory { 
   bool get(); 
   void set(bool); 
} 

Property Value

Maximum size of continuous conventional memory in bytes to use when creating a RasterImage object. The default value is 0.

Remarks

The value of MaximumConventionalMemory can be set to any of the following:

Value Meaning
0 No Maximum. The toolkit will try to use as much conventional memory as possible to create the image. This is the default behavior
>0 Amount in bytes. If the memory requested is larger, the system will switch to disk or memory mapped files with a small window.
-1 A special value designed for multi-threaded server operations. The specific number of bytes depends on the processor(s) being used as follows:
For x86 processors, the value is 42,187,000 (42MBytes).
For x64 processors, the value is calculated dynamically (1.7GBytes for each 8 cores, not exceeding the physical memory size).
All other values are currently invalid.

The LEADTOOLS OCR and document toolkits sets the value of MaximumConventionalMemory to -1 to free up as much conventional memory as possible for other operations such as auto-zoning and recognition. This memory size can hold a typical document page (8.5 by 11 inches at 32-bits per pixel) in conventional memory.

Requirements

Target Platforms

See Also

Reference

Leadtools Namespace

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly