ContentsIndexHome
PreviousUpNext
IAimmsMathProgramInfo::AllocateMemory Method

Allocate a memory block.

virtual void * AllocateMemory(
    size_t size
) = 0;
Parameters 
Description 
size_t size 
The size of the memory block that must be allocated. 

The AllocateMemory method returns the pointer to the buffer, or NULL if the requested amount of memory is not available.

The AllocateMemory method allocates memory from the AIMMS memory manager.

  1. The contents of the memory block allocated by this method is initialized to 0.
  2. If the allocated memory block is no longer needed, it should be freed using the FreeMemory method.

Copyright © 1993–2016 by AIMMS B.V. All rights reserved.