Project

General

Profile

Actions

Backport #1063

closed

in `write': Not enough space - <STDOUT> (Errno::ENOMEM) on Windows XP

Added by konung (Nick Gorbikoff) about 15 years ago. Updated almost 13 years ago.

Status:
Closed
[ruby-core:21613]

Description

=begin
Hi, All.

I'm getting an error message when running my test codes on Windows XP under latest ruby-1.9.1-preview - that I downloaded of the website in binary form ( I didn't compile it).


 test.rb:34:in `write': Not enough space -  (Errno::ENOMEM)
         from test.rb:34:in `puts'
         from test.rb:34:in `puts'
         from test.rb:34:in `'
 

Now the error message I'm getting is strange - all I could find about it is actually - that somebody had it on *nix machines, but not on windows. Also the same code runs fine under my ruby-1.8.6 - patch 111. As I understand that code means that it's a running out of swap space. Well there is a pagefile on windows, which I guess I guess is windows swap equivalent, but I'm running on a fairly fast machine ( dual core pent 4, with 4 gbs of RAM and system managed pagefile.) So I don't think I'm actually running of memory. :-)

Below is my code that I run ( mind it's just a stupid benchmark code - there is no utility to it, but I was surprised that 1.9.1 couldn't handle what 1.8.6 did) :


 a = Time.now
 k = []
 
 class Array
   def inject(n)
      each { |value| n = yield(n, value) }
      n
   end
   def sum
     inject(0) { |n, value| n + value }
   end
   def product
     inject(1) { |n, value| n * value }
   end
 end
 
 def fibUpTo(max)
   i1, i2 = 1, 1        # parallel assignment
   while i1 

=end


Files

test.rb (753 Bytes) test.rb konung (Nick Gorbikoff), 01/28/2009 02:47 AM

Related issues 1 (0 open1 closed)

Related to Backport186 - Backport #766: 'Not enough space' error on windowsRejectedusa (Usaku NAKAMURA)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0