Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
String IronRuby使用WebClient下载文件;存储空间不足,无法处理此命令;_String_Screen Scraping_Webclient_Ironruby - Fatal编程技术网

String IronRuby使用WebClient下载文件;存储空间不足,无法处理此命令;

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'

在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=“String”*40000

编辑: 看来我的问题与交互式控制台有关。

如果我用这个

wc = System::Net::WebClient.new
doc = wc.DownloadString("http://yahoo.com"); nil
它可以工作…

(IR中的错误)