G
Guest
I am using a com server to return a memory pointer to a C# program in .net.
The code works fine when it is not in a thread. When it is run in a thread
the pointer no longer points to the data the com server has.
I am using a System.IntPtr to transfer the pointer.
Are there marshaling issues?
When you look at the memory in the debugger it appears to be garbage.
What other things do I need to consider when doing this?
The code works fine when it is not in a thread. When it is run in a thread
the pointer no longer points to the data the com server has.
I am using a System.IntPtr to transfer the pointer.
Are there marshaling issues?
When you look at the memory in the debugger it appears to be garbage.
What other things do I need to consider when doing this?