HP OpenVMS Systems

ask the wizard
Content starts here

C memory management and debugging leaks?

» close window

The Question is:

Is there an OpenVMS tool for detecting memory leaks in C programs?  I have
 tried using the
Heap Analyzer without much success.  Is there
anything like (Atom) Third Degree for OpenVMS?

The Answer is :

  Your "without success" comment is difficult for the OpenVMS Wizard to
  address, as it lacks detail(s) on the problem(s) you have encountered.
  (The OpenVMS Wizard has found the Heap Analyzer to be quite useful.)
  Discussions in topics (1661), (2624), (2630), (3115), (3257), (4808),
  (5455), and probably a few others may be of interest when working with
  memory management, and particularly when debugging memory management
  The OpenVMS Wizard prefers to avoid distributing the use of the
  exceedingly generic C memory allocation and deallocation routines
  throughout any non-trivial application, prefering instead to centralize
  all allocation and deallocation calls into a very few application-provided
  routines.  These routines can then call malloc and free, or the LIB$ VM
  services.  This design for various reasons, including easing maintenance
  tasks such as debugging and logging of memory management activities, and
  for performance tasks such as the customization of the memory management
  operations to meet application requirements.

answer written or last revised on ( 27-DEC-2000 )

» close window