String IronRuby使用WebClient下载文件;存储空间不足,无法处理此命令;
在IronRuby交互控制台的交互窗口中输入以下两行String IronRuby使用WebClient下载文件;存储空间不足,无法处理此命令;,string,screen-scraping,webclient,ironruby,String,Screen Scraping,Webclient,Ironruby,在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'
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=“String”*40000 编辑: 看来我的问题与交互式控制台有关。
如果我用这个
wc = System::Net::WebClient.new
doc = wc.DownloadString("http://yahoo.com"); nil
它可以工作…(IR中的错误)