NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

/Zm (Specify Memory Allocation Limit)

/Zmnumber

/Zmnumber determines the compiler's memory allocation limit. number is a scaling factor with a default value of 100, which specifies a memory allocation of 105MB. The maximum number is 2000. The following table demonstrates how number modifies the memory allocation:

number memory allocation
10 10.5 MB
100 105 MB
200 210 MB
1000 1050 MB
2000 2100 MB

The compiler uses a number of discrete heaps, each of which has a finite limit. The total of the size limits for all heaps is about 105 MB, but when any one heap is exhausted, the compiler cannot continue. Memory is allocated only as needed; the 105-MB limit prevents using too much memory. Exceeding any one of the discrete-heap size limits occurs only in rare circumstances involving very large or very complex programs. Should your program exceed one of these limits, use /Zm to scale the total size of all the limits.

Note   In most cases, use of this compiler option is not necessary. Use it if compiling your program causes error message C1076.

See Also

Compiler Options | Setting Compiler Options