Memory Management in the Win32 API

The 32-bit linear virtual memory address space available to processes in the Win32 API makes memory management simpler and cleaner. (This applies to DB-Library programming as well as to all other programming for the Win32 API.)

Although the memory management functions (GlobalAlloc, LocalAlloc, and so on) in the Windows operating system are supported in the Win32 API, consider using the C run-time functions malloc and free to perform dynamic memory management when you develop applications to run with the Win32 API. In addition to the standard memory management functions (Global and Local, C run-time support), the Win32 API also provides heap and virtual memory management functions for applications that require specialized memory management.

Two specific areas of DB-Library programming can take advantage of the ability to address greater than 64K of data: