TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
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
Forums
Monthly Leaders
Forum guidelines
Harish Iyer
NA
58
0
Updating controls in a thread safe manner
Aug 4 2009 10:36 AM
Hello,
I have a thread intensive C# .NET application in which there are two main threads. I have just migrated this application from .NET 1.1 to .NET 2.0 framework. It works perfectly under .NET 1.1
Thread 1 - manages the state of the application.
Thread 2 - creates and updates the controls
In thread 2, the controls are being updated in a thread-safe manner using the
Invoke
calls since the trigger to update the controls may come from Thread 1. For some reason, the Invoke mechanism doesnt work. I have also tried using the
BeginInvoke
instead of Invoke, but it doesnt work. Due to this, the application hangs in the Thread 1 because Thread 2 does not update the control and return. It would be great if there is a solution to this issue!
Reply
Answers (
3
)
Expression Blend 3 with SketchFlow
Cannot connect 2nd Client to server when first client is already loggedIn, happens only incase when server in different network