Public Sub exampleSub()
Dim temp As IntPtr = GCHandle.Alloc(New IntPtr, GCHandleType.Pinned).AddrOfPinnedObject()
'other stuff
End Sub
将temp
在End Sub
? 这个子会导致任何内存泄漏吗?
Public Sub exampleSub()
Dim temp As IntPtr = GCHandle.Alloc(New IntPtr, GCHandleType.Pinned).AddrOfPinnedObject()
'other stuff
End Sub
将temp
在End Sub
? 这个子会导致任何内存泄漏吗?