|
IMalloc
The OLE implementation of IMalloc allocates, frees, and manages memory.
The OLE libraries and object handlers call the methods of the IMalloc implementation to manage memory. Those implementing object handlers should
call CoGetMalloc to get a pointer to the IMalloc implementation to handle task memory management needs.
The IMalloc methods Alloc, Free, and Realloc are similar to the C library functions malloc, free, and realloc. For debugging, refer to the functions CoRegisterMallocSpy and CoRevokeMallocSpy.
Methods in Vtable Order
IMalloc Methods
| Description
| Alloc
| Allocates a block of memory.
| Free
| Frees a previously allocated block of memory.
| Realloc
| Changes the size of a previously allocated block of memory.
| GetSize
| Returns the size in bytes of a previously allocated block of memory
| DidAlloc
| Determines if this instance of IMalloc was used to allocate the specified
block of memory.
| HeapMinimize
| Minimizes the heap by releasing unused memory to the operating system.
|
See Also
CoGetMalloc, CoRegisterMallocSpy, CoRevokeMallocSpy
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|