Export (0) Print
Expand All


Visual Studio .NET 2003

This option sets (AGGRESSIVE) or deletes (!AGGRESSIVE) the IMAGE_FILE_AGGRESIVE_WS_TRIM attribute to your application's image.

In Windows NT 4.0 and later, the loader recognizes this attribute and aggressively trims the working set of the process when the process is inactive. This has the same effect as using the following call throughout your application.

SetProcessWorkingSetSize(hThisProcess, -1, -1)

Use /WS:AGGRESSIVE for applications such as services and screen savers that must have a low impact on the system's memory pool. If the speed of your application matters, do not use /WS:AGGRESSIVE without testing the resulting performance.

See Also


© 2015 Microsoft