【问题标题】:IronRuby download file using the WebClient "Not enough storage is available to process this command"IronRuby 使用 WebClient 下载文件“没有足够的存储空间来处理此命令”
【发布时间】:2010-07-18 21:22:28
【问题描述】:

在 IronRuby 交互控制台的交互窗口中输入以下两行代码。

wc = System::Net::WebClient.new
doc = wc.DownloadString("http://yahoo.com")

我收到以下错误。

=> mscorlib:0:in `WinIOError': Not enough storage is available to process this command.\r\n (IOError)
    from mscorlib:0:in `Write'
    from (ir):1

编辑: 看起来它通常与字符串有关。以下产生相同的错误
x = "字符串" * 40000

编辑: 看起来我的问题与交互式控制台有关。
http://rubyforge.org/tracker/index.php?func=detail&aid=23485&group_id=4359&atid=16798

如果我用这个

wc = System::Net::WebClient.new
doc = wc.DownloadString("http://yahoo.com"); nil

它有效...

【问题讨论】:

    标签: string screen-scraping webclient ironruby


    【解决方案1】:

    http://ironruby.codeplex.com/workitem/5814(IR 中的错​​误)

    【讨论】:

      猜你喜欢
      • 2014-06-23
      • 2015-01-22
      • 2012-05-14
      • 1970-01-01
      • 2017-11-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多