Threading pipe Issue

L

Lou

When a named pipe message returns a message from an asynchronous
"BeginWrite"
operation I assume the response from the call back is on a different thread.
If so how do I get the message to the main thread so I can write it to a
text file.
I know how to use a delegate to display it to a control using "Invoke" but a
class
module has no Invoke?

-Lou Confused...
 
T

Tom Shelton

When a named pipe message returns a message from an asynchronous
"BeginWrite"
operation I assume the response from the call back is on a different thread.
If so how do I get the message to the main thread so I can write it to a
text file.
I know how to use a delegate to display it to a control using "Invoke" but a
class
module has no Invoke?

-Lou Confused...

Why do you need it on the main thread? If you aren't interacting with the UI,
then you don't really need to marshall it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top