# Not enough storage is available to process this command

**URL:** <https://www.ruby-forum.com/t/not-enough-storage-is-available-to-process-this-command/148270>\
**Category:** IronRuby\
**Created:** [September 11, 2008, 5:33am UTC](https://www.ruby-forum.com/t/not-enough-storage-is-available-to-process-this-command/148270 "2008-09-11T05:33:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daborg69](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d9b06d/32.png) [@daborg69](https://www.ruby-forum.com/u/daborg69)\
**Post date:** [September 11, 2008, 5:33am UTC](https://www.ruby-forum.com/t/not-enough-storage-is-available-to-process-this-command/148270/1 "2008-09-11T05:33:48Z")

</div>

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:in `WinIOError': Not enough storage is available to process this command. (IOError) from mscorlib:0:in`Write’  
> > > from :0
> 
> > >
