locked
请教一个System.OutOfMemoryException异常的问题 RRS feed

  • 常规讨论

  • IAsyncResult result=
    (IAsyncResult) myHttpWebRequest.BeginGetResponse(new AsyncCallback(RespCallback),myRequestState);

    开始对 Internet 资源的异步请求,信号较弱时,会出现System.OutOfMemoryException异常。

    > System.Windows.dll!MS.Internal.FrameworkCallbacks.NotifyManagedDebuggerOnNativeOOM() + 0xd bytes 
      [External Code] 
      System.Windows.dll!MS.Internal.XcpImports.GetDownloaderBytesNative(System.IntPtr element, out System.IntPtr outBytes, out int outSize) 
      System.Windows.dll!MS.Internal.XcpImports.GetDownloaderBytes(System.IntPtr element, out System.IntPtr outBytes, out int outSize) + 0xc bytes 
      System.Windows.dll!MS.Internal.XcpImports.WebRequest_GetDownloaderBytes(MS.Internal.InternalWebRequest request, System.Uri uri) + 0xf bytes 
      System.Windows.dll!MS.Internal.InternalWebRequest.GetResponseStream() + 0x7 bytes 
      System.Windows.dll!System.Net.Browser.ClientHttpWebRequest.Failed(object sender, System.EventArgs e) + 0xa8 bytes 
      System.Windows.dll!MS.Internal.InternalWebRequest.OnDownloadFailed(object sender, MS.Internal.ErrorEventArgs args) + 0x15 bytes 
      System.Windows.dll!MS.Internal.CoreInvokeHandler.InvokeEventHandler(int typeIndex, System.Delegate handlerDelegate, object sender, object args) + 0x3f4 bytes 
      System.Windows.dll!MS.Internal.JoltHelper.FireEvent(System.IntPtr unmanagedObj, System.IntPtr unmanagedObjArgs, int argsTypeIndex, int actualArgsTypeIndex, string eventName) + 0x178 bytes 
      [External Code] 
    2012年3月19日 8:07

全部回复