COMMUNITY: How to properly ask a question on Forums
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Krivahn Doss
0
33
0
Multi Threading with BinaryWriter
Apr 2 2008 8:08 AM
Im using TcpClient to write data to a port.
Using NewtworkStream & BinaryWriter.
All works fine. The only problem im having is that my UI freezes
when the BinaryWriter is sending allot of data from the database.
This is what I have with the binarywriter writer = new BinaryWriter(networkstream)
writer.Write(str);
I treid to add the BackgroundWorker.RunWorkerAsync(writer.Write(str);
This throws an error.
How do I make the writer use a different thread when writing ?
Reply
Answers (
1
)
launch new Form/thread that doesn't close with main App
Sharing a Generic Collection
"