Marshaling an interface between threads in a process
-
I've got some problem trying to marshal an interface between threads in a process. :wtf: In Win32 app I can call CoMarshalInterThreadInterfaceInStream to marshal and CoGetInterfaceAndReleaseStream to unmarshal or use Global Interface Table but I don't know how to declare this functions/Com class in the .NET. Or mayby there is another solution build-in the framework. Can you guys write some example how to use this functions/COM class I'll appreciate it. Thanks in advance
43 68 65 65 72 73 2c 4d 69 63 68 61 65 6c
-
I've got some problem trying to marshal an interface between threads in a process. :wtf: In Win32 app I can call CoMarshalInterThreadInterfaceInStream to marshal and CoGetInterfaceAndReleaseStream to unmarshal or use Global Interface Table but I don't know how to declare this functions/Com class in the .NET. Or mayby there is another solution build-in the framework. Can you guys write some example how to use this functions/COM class I'll appreciate it. Thanks in advance
43 68 65 65 72 73 2c 4d 69 63 68 61 65 6c
In my opionion the framework takes care of that for you. Step back, rub your eyes, take a deep breath, stretch a bit, and reflect on the relative importance of CP, CG, the age / travel time sustained by supposedly 'fresh' cheese curds, and Life in General. - Shog9
-
In my opionion the framework takes care of that for you. Step back, rub your eyes, take a deep breath, stretch a bit, and reflect on the relative importance of CP, CG, the age / travel time sustained by supposedly 'fresh' cheese curds, and Life in General. - Shog9
That's right. :) I found the answer in the .Net SDK. But there is one requirement - both threads must be in the STA apartment, otherwise the function call on the interface will fail.
43 68 65 65 72 73 2c 4d 69 63 68 61 65 6c