Who Manages Memory?
Generally, the stubs are responsible for packaging and unpackaging data, allocating and freeing memory, and transferring the data to and from memory. In some cases, however, the application is responsible for allocating and freeing memory. The following topics discuss the factors that determine which component is responsible for memory management:
- Top-Level and Embedded Pointers
- Directional Attributes Applied to the Parameter
- Length, Size, and Directional Attributes
- Pointer Attributes Applied to the Parameter
- Combining Pointer and Directional Attributes
- MCCP Buffer Protection
- Function return values
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for