[Ironruby-core] Not enough storage is available to process this command.

Scott Holden lists at ruby-forum.com
Wed Sep 10 23:33:48 EDT 2008


Hi, I'm trying to open a pretty small file (~70k) and read its contents,
but IR is telling me that I don't have enough memory available to
process it.

Does anyone have any ideas what might be causing this?

Thanks,

-Scott


Output below:

C:\Releases\DigitalDisplays\1.0\latest>dir
 Volume in drive C has no label.
 Volume Serial Number is F497-0C97
 Directory of C:\Releases\DigitalDisplays\1.0\latest
09/10/2008  10:10 PM    <DIR>          .
09/10/2008  10:10 PM    <DIR>          ..
08/13/2008  10:19 AM    <DIR>          Debug
08/13/2008  10:19 AM    <DIR>          Release
09/10/2008  10:11 PM            68,764 test.txt
08/14/2008  06:24 PM    <DIR>          Websites
               1 File(s)         68,764 bytes
               5 Dir(s)  20,656,107,520 bytes free
C:\Releases\DigitalDisplays\1.0\latest>ir
IronRuby 1.0.0.0 on .NET 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.
Note that local variables do not work today in the console.
As a workaround, use globals instead (eg $x = 42 instead of x = 42).
>>> $f = ""
=> ""
>>> File.open("test.txt"){|file| $f = file.read}
=> mscorlib:0:in `WinIOError': Not enough storage is available to
process this command.
 (IOError)
        from mscorlib:0:in `Write'
        from :0
>>>
-- 
Posted via http://www.ruby-forum.com/.


More information about the Ironruby-core mailing list