一下代码在调试的时候并没有抛出异常,但是程序发布以后却抛出异常,请问有大牛之道是什么原因吗? try
{
//MessageBox.Show("m_allStationsInfo ++" + m_allStationsInfo.Count.ToString());
Station station = null;
foreach (StationInfo tmp in m_allStationsInfo)
{
station = new Station(tmp.id);
m_stationsDic.Add(tmp.id, station);
}
}
catch
{
MessageBox.Show("创建站点字典失败");
}
{
//MessageBox.Show("m_allStationsInfo ++" + m_allStationsInfo.Count.ToString());
Station station = null;
foreach (StationInfo tmp in m_allStationsInfo)
{
station = new Station(tmp.id);
m_stationsDic.Add(tmp.id, station);
}
}
catch
{
MessageBox.Show("创建站点字典失败");
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货