Advertising (This ad goes away for registered users. You can Login or Register)

[mono C#and gtk] threads comunication

Programming on your favorite platform, for your favorite platform? Post here
Locked
andrea82it
Posts: 9
Joined: Thu Oct 11, 2012 6:26 pm
Location: Into PS VITA - Italy

[mono C#and gtk] threads comunication

Post by andrea82it »

hi to all, i have a little problem, first i am a beginner with c#, the situation:
i have maked a little program to start and stop some service on my windows xp, now i like to put into my little program a status checker for this service, for this i have added a textview to the gui and when the textview is alive i start a new thread for run the status checker without stop the main thread, but from second thread i can't update the textview.
surely exist a method for update the textview from another thread but how?
i have searched a solution for some days but without succes, can someone help me?

thanks in advance foe the help, and sorry for my bad english (probably i have wrongly writed some words).

edit:
ok i have solved this problem, but now gtk generate occasionally some error at runtime and the application crashes and probably for this problem only an update of gtk can solve my problem.
Advertising
Don't stop to fink, go in action.
Locked

Return to “Programming”