Back to Aurora Vision Library website
	
 
	
                
                    
	
		
	You are here: Start » Function Reference » System » Configuration » ChargeImageMemoryPools
| Header: | AVL.h | 
|---|---|
| Namespace: | avl | 
| Module: | FoundationLite | 
Preallocates memory buffers for images.
Applications: This may improve performance when many images are created and destroyed in an application.
Syntax
C++
C#
void avl::ChargeImageMemoryPools ( const atl::Array<int>& inRequestedPoolSizes, bool inTouch )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]()  | 
				inRequestedPoolSizes | const Array<int>& | Copy a value from InspectImageMemoryPools.outPoolSizes | |
![]()  | 
				inTouch | bool | Forces getting the new memory pools to the cache memory | 
Multithreaded environment
This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.
Errors
List of possible exceptions:
| Error type | Description | 
|---|---|
| DomainError | Incorrect size of 'inRequestedPoolSizes' array. | 

