Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Marshal.Copy

0 views
Skip to first unread message

Atmapuri

unread,
Jun 11, 2006, 2:36:33 AM6/11/06
to
Hi!

When copying from IntPtr to an array, does the
array has to be pinned or is that done by the
Marshal.Copy method already?

Thanks!
Atmapuri


Mattias Sjögren

unread,
Jun 13, 2006, 1:50:59 AM6/13/06
to
>When copying from IntPtr to an array, does the
>array has to be pinned or is that done by the
>Marshal.Copy method already?

It's done for you, you don't have to explicitly pin the array.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

0 new messages