PinningPtrs Sample: Demonstrates Pinning Pointers to Managed Data
The PinningPtrs sample illustrates several techniques for working with pinned and unpinned managed pointers. The
H class implements two functions (
mf2). These functions demonstrate various ways of pinning and unpinning managed pointers. In addition, several limitations are demonstrated.
Building and Running the Sample
To build and run PinningPtrs using Visual Studio
- In the Visual Studio IDE, load the solution file PinningPtrs.sln.
- In Solution Explorer, right-click the PinningPtrs solution.
- On the shortcut menu, click Build.
- On the Debug menu, click Start.