NWGarbageCollect

Unfragments freed server memory.

Library:LibC
Classification:NetWare OS
Service:NetWare Platform

Syntax

  #include <netware.h> 
   
  void NWGarbageCollect (
     void   *NLMHandle);
  

Parameters

NLMHandle

(IN) Points to a handle for an NLM.

Remarks

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.

See Also