首页 新闻 赞助 找找看

System.Threading.Thread发生的怪事,高手来看看

0
悬赏园豆:5 [已关闭问题]

控制台程序--------服务端
main()
{
   System.Threading.Timer timerAnalyze = new Timer(StartAnalyze, null, dueTime, period);
}

static void StartAnalyze(object o)
{}

控制台还实现了一个remoting
public class RemoteCommand : MarshalByRefObject
{
   public void RetryGame(int gameId){}
}

--------------------------------------------------------------------------------------
Client端

如果Client端不调用RemoteCommand.RetryGame方法.timerAnalyze事件是可以按时运行的...

但是只要Client一调用RemoteCommand.RetryGame方法timerAnalyze事件就不运行了...真是怪事啊.

ITAres的主页 ITAres | 初学一级 | 园豆:107
提问于:2009-11-11 18:26
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册