Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
IO.pipe
Paulo Carvalho
10/23/2007 12:56:00 PM
Hello
I am having a problem with IO.pipe
I have the following code:
...
img = read_pipe.read()
im = Magick::Image::read_inline(Base64.b64encode(img)).first
im.format = "PNG"
puts "1"
read_pipe, write_pipe = IO.pipe
puts "2"
im.write(write_pipe)
puts "3"
write_pipe.close()
puts "4"
...
My problem is that when i try to close the write_pipe, the process seems
to stop.
In the console, I have the "puts '3'" printed but not the "puts '4'" and
after that nothing happens.
Anyone with an idea about this problem?
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
IO.pipe
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password