首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

c# 多线程线程池 使用构造体数组来获得返回值 求大侠指点

2013-10-22 
c# 多线程线程池 使用结构体数组来获得返回值 求大侠指点 public struct qrypara{public string keywordp

c# 多线程线程池 使用结构体数组来获得返回值 求大侠指点
 public struct qrypara
        {
            public string keyword;
            public CookieContainer cookie;
            public int pos;
            public string url;
            public string qryurl;
            public string errorlog;
        }
private void queryhk(object paraob)
        {
            qrypara qry = (qrypara)paraob;
            try
            {
                此处省略不相关代码....
                int pos = 0;
                ..............
                qry.pos = pos;
                paraob = qry;
            }
            catch (Exception rqste)
            {
                MessageBox.Show(rqste.ToString());
                paraob = qry;
            }
        }
这样子 获取不到返回值是为什么  ?? 多线程 线程池
[解决办法]
没看到多线程也没有看到线程池,就看到一堆不知所云的代码。

热点排行