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 .
09/10/2008 10:10 PM …
08/13/2008 10:19 AM Debug
08/13/2008 10:19 AM Release
09/10/2008 10:11 PM 68,764 test.txt
08/14/2008 06:24 PM 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 © 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:inWinIOError': Not enough storage is available to process this command. (IOError) from mscorlib:0:in
Write’
from :0