The following simple example works fine in original Shoes, but fails in green_shoes (Environment is Vista 64-bit, RailsInstaller, gem install green_shoes)
require 'green_shoes'
sites = %w(google amazon yahoo msn)
Shoes.app do
stack do
@status = {}
sites.each do |site|
@status[site] = para("Retrieving site #{site}...")
download "http://www.#{site}.com" do |page|
@status[site].text = "Ok, #{site} homepage is #{page.length} bytes long."
end
end
end
end
Typically after displaying the result for the second site, it bombs with:
@AllegroGavin Thanks for the post. But, umm... It works for me. I can't get the error on my Windows 7 32-bit. Sorry, I'm not sure this issue is dependent on Vista or 64-bit pc or other reason.
The following simple example works fine in original Shoes, but fails in green_shoes (Environment is Vista 64-bit, RailsInstaller, gem install green_shoes)
Typically after displaying the result for the second site, it bombs with:
So something is not compatible/safe with whatever sort of threading download invokes I think.
G.