T
tristan.chaplin
I have an unmanaged dll that returns a pointer (that it allocates, I
didn't allocate it with Marshal.AllocHGlobal), how do I free the memory
when I'm finished with it? It doesn't seem to like me calling
Marshal.FreeHGlobal on it.
I have heard rumours that the dll needs to supply its own destructor
function - is that true?
didn't allocate it with Marshal.AllocHGlobal), how do I free the memory
when I'm finished with it? It doesn't seem to like me calling
Marshal.FreeHGlobal on it.
I have heard rumours that the dll needs to supply its own destructor
function - is that true?