Solved this program:accessed from a thread other than the thread it was created on.
来源:互联网 发布:yy刷人气软件 编辑:程序博客网 时间:2024/05/29 18:58
protected void myWatcher_Created(object sender, FileSystemEventArgs e)
{
string s = "ChangeType :: " + e.ChangeType.ToString() + "/nFullPath ::" + e.FullPath.ToString() + "/n/n";
AppendText(s);
}
private delegate void AppendTextHandler(string s);
private void AppendText(string s)
{
if( richTextBox1.InvokeRequired )
richTextBox1.Invoke(new AppendTextHandler(AppendText), new object[]{s});
else
richTextBox1.Text += s;
}
- Solved this program:accessed from a thread other than the thread it was created on.
- Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be
- Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be
- This application is modifying the autolayout engine from a background thread after the engine was ac
- 【解决】iOS开发,更新界面时崩溃,Tried to obtain the web lock from a thread other than the main thread or ……
- MBProgressHUD needs to be accessed on the main thread.
- The Solution of "The calling thread cannot access this object beacuse a different thread owns it."
- The Solution of "The calling thread cannot access this object beacuse a different thread owns it." .
- The object or library file 'xxx.obj' was created with an older compiler than other obj
- error:The calling thread cannot access this object because a different thread owns it解决方法
- CalledFromWrongThreadException: Only the original thread that created a view
- CalledFromWrongThreadException: Only the original thread that created a view
- only the original thread that created a view
- MBProgressHUD needs to be accessed on the main thread.报错的解决办法
- fatal error C1047: The object or library file "..."was created with an older compiler than other obj
- iOS9 This application is modifying the autolayout engine from a background thread, which
- This application is modifying the autolayout engine from a background thread, which can lead to engi
- iOS9 This application is modifying the autolayout engine from a background thread, which
- RIP知识学习
- 《算法导论》
- 发布 ASP.NET 日期选择控件 For VS2005 V2.0 SP1
- 在csdn上第一篇博客
- A simple approach to Speech Recognition - step.0
- Solved this program:accessed from a thread other than the thread it was created on.
- servlet 中文乱码 问号 问题!
- 迅驰技术
- 2007-8-2(愤怒+无奈)
- 双核技术
- 注册表知识:HKEY_LOCAL_MACHINE根键详解
- S60 3rd下实现Video Call 与 VoIP Call
- repeater 潜逃 repeater ItemDataBound的使用
- 07年6月泰国行