1
在IronRuby交互式控制檯的交互式窗口中輸入以下兩行。使用WebClient的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
它的工作原理...