C#AccessViolationException未处理

时间:2016-04-20 07:26:43

标签: c# httpwebrequest access-violation

我写了一个多线程程序来获取页面信息。调试此程序一段时间后,它将显示此错误“访问冲突异常未处理。尝试读取或写入受保护的内存。这通常表示其他内存腐败的。” on“response =(HttpWebResponse)request.GetResponse();”如果我只是得到错误页面,它运行良好。我该如何解决这个问题?

.landingMenu {
  top: 1%;
  position: fixed;
  width: 100%;
  border-top: 0.1em solid white;
  border-bottom: 0.1em solid white;
  padding: 0.5em;
  background-color: #00B16A;
}

#landingMenuOrangeLine {
  width: 100%;
  height: 0.3em;
  background-color: #FF4C00;
  position: fixed;
  top: 5%;
  z-index: 1;
}

.miniNavButton {
  background-color: #4DC594;
  padding: 1em;
  margin: 0 7.5%;
  border-radius: 50%;
  display: inline-block;
  z-index: 2;
}

.icon-user,
.icon-book,
.icon-envelop,
.icon-eye,
.icon-embed,
.icon-hammer {
  width: 2em;
  height: 2em;
}

.contactLink {
  display: none;
}

0 个答案:

没有答案
相关问题