【发布时间】: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