本文介绍了因为线程应用程序正在被绞死的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在我的应用程序中使用Thread时遇到问题。由于使用了线程,应用程序正在被绞死。如果有人有解决方案,请给我。提前致谢。





Hi,
I have a problem using Thread in my application. The application is getting hanged because of using a thread.if anyone have the solution please give me. Thanks in advance.


//This is declared Globally
 Thread TrdCopyFLV=new TrdCopyFLV();

//this is called in a timer
if (TrdCopyFLV == null || !TrdCopyFLV.IsAlive)
                   {
                       //TrdCopyFLV = new Thread(delegate() { ConvertToFlv(lOpr1, lOpr2); });
                       TrdCopyFLV = new Thread(ThreadConvertToFlv);
                       TrdCopyFLV.IsBackground = true;
                       TrdCopyFLV.Priority = ThreadPriority.Lowest;
                       TrdCopyFLV.Start();
                   }

推荐答案


这篇关于因为线程应用程序正在被绞死的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 20:21