Re: BeginInvoke on a delegate
- From: "Ben Voigt [C++ MVP]" <rbv@xxxxxxxxxxxxx>
- Date: Tue, 29 Jul 2008 16:14:57 -0500
"Charles Wang [MSFT]" wrote:
Hi Bob,
Your analysis is correct. The problem here is that the native type
object "myClass" is passed as a parameter to BeginInvoke. There are
two ways to work around this issue, one is changing your MyClass type
from native to managed, and the other one is using a wrapper managed
class to wrap your native type object. For example:
In case writing a new ref class is overkill, consider just using
System::IntPtr.
.
- Prev by Date: Re: How to iterate a gcroot
- Next by Date: Re: valid HWND in a Service
- Previous by thread: Re: How to iterate a gcroot
- Next by thread: How to embed meta info for an executable?
- Index(es):