NoviceProgrammer
June 25th, 2008, 12:59 AM
Hi,
I'm passing a delegate into an unmanaged function using Platform Invoke.
But when I try to call the function later, I get an error saying that the Garbage Collector has already moved my delegate.
How do I stop the Garbage Collector from moving my delegate?
Thanks in advance
I'm passing a delegate into an unmanaged function using Platform Invoke.
But when I try to call the function later, I get an error saying that the Garbage Collector has already moved my delegate.
How do I stop the Garbage Collector from moving my delegate?
Thanks in advance