Unfragments freed server memory.
#include <netware.h> void NWGarbageCollect ( void *NLMHandle);
(IN) Points to a handle for an NLM.
NWGarbageCollect provides a programmatic way to unfragment server memory before that memory is unfragmented automatically by the OS. If a large number of calls have been made to allocate memory, especially in small pieces, the NetWare 5.x and 6.x OS often fragments server memory, causing subsequent memory allocation calls to fail. A call to NWGarbageCollect with a valid NLM handle unfragments all server memory.
For the NLMHandle parameter, pass in the handle returned by a call to getnlmhandle.