Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Multi Threading with BinaryWriter
Krivahn Doss
Apr 2 2008 8:08 AM
9.2k
Reply
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 ?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
launch new Form/thread that doesn't close with main App
Sharing a Generic Collection