Yes.  This applies to all Marshal methods that return interface pointers
as IntPtr types.

Adam

-----Original Message-----
From: Axel Heitland [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 25, 2002 9:09 AM
To: [EMAIL PROTECTED]
Subject: [DOTNET] Marshal::GetComInterfaceForObject

Can find it in the doc's:

GetComInterfaceForObject returns an IntPtr representing the COM
interface of the given .NET type.

I think I need to call Marshal::Release on that return value after use,
right?! 

My regards
        Axel

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to