L
Laurent Navarro
Hello,
I'm currently working on a multi threaded application and I would like
to create a pipe to communicate between them: the main thread will write
into the pipe some data and the working threads will read and execute. But
it seems that pipes don't exist in C# unless you create your own k,class.
I need to pass object reference between my threads so my first question
is: how do I get the reference (IntPtr) of a managed object ?
I had the idea to use a MemoryStream to write my IntPtr in because this
class is thread safe. Is it a good idea ? Did someone already tackled this
kind of problem ?
Thanks for any help !
Laurent
I'm currently working on a multi threaded application and I would like
to create a pipe to communicate between them: the main thread will write
into the pipe some data and the working threads will read and execute. But
it seems that pipes don't exist in C# unless you create your own k,class.
I need to pass object reference between my threads so my first question
is: how do I get the reference (IntPtr) of a managed object ?
I had the idea to use a MemoryStream to write my IntPtr in because this
class is thread safe. Is it a good idea ? Did someone already tackled this
kind of problem ?
Thanks for any help !
Laurent