I'm exporting a method from a managed C++ DLL using __declspec(dllexport) so
that I can call it from a plain old C app.
This method takes as one of its arguments a void * that comes from the C
app. I store this void * in one of the members of my managed C++ class.
Since the void * is from my C app, do I need to protect it in anyway from the
GC?
Thanks.
-Jason
Mattias Sjögren - 26 Apr 2006 22:43 GMT
>Since the void * is from my C app, do I need to protect it in anyway from the
>GC?
No, native pointers are not garbage collected types.
Mattias

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