Thanks for the reply. Both programs crashed, but even this one:
Shoes.app {
download "http://www.google.com", :method => "POST"
}
crashed. So I'm quite positive it's something in the :method => "POST".
It works ok both on my mac and on my XP and win2003 VMs, but these are
32bit.
--------------------------------------------------
From: "Edward Heil" <[email protected]>
Sent: Thursday, April 02, 2009 3:30 PM
To: <[email protected]>
Subject: Re: Possible bug on the "download" function, vista x64
I don't know if this is the problem, but you might want to explicitly
append that para to the stack, since the download event takes place after
the page is laid out. (And maybe you should take the download out of that
stack in the first place).
You could try:
Shoes.app {
@st = stack do
download "http://www.gooogle.com", :method => "POST" do |goog|
@st.append do
para goog.response.headers.inspect
end
end
end
}
or:
Shoes.app {
@st = stack
download "http://www.gooogle.com", :method => "POST" do |goog|
@st.append do
para goog.response.headers.inspect
end
end
}
I'm on a mac, and your original program doesn't crash it, so perhaps this
is in fact a windows bug and has nothing to do with the lack of an
"append" block, but I would feel safer with an "append" block in there.
On Apr 2, 2009, at 6:25 AM, Andreas Skoufis wrote:
(Posted on stackoverflow.com first)
I try the following on vista x64 (latest shoes version):
Shoes.app {
stack do
download "http://www.gooogle.com", :method => "POST" do |goog|
para goog.response.headers.inspect
end
end
}
The program crashes, and under the event viewer I get the following:
Faulting application shoes.exe, version 0.0.0.0, time stamp 0x4939c691,
faulting module ntdll.dll, version 6.0.6001.18000, time stamp
0x4791a783, exception code 0xc0000005, fault offset 0x0002f8f4, process
id 0x1204, application start time 0x01c9b2047e4db061.
Or, in details view:
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/ event">
- <System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2009-03-31T13:27:53.000Z" />
<EventRecordID>5962</EventRecordID>
<Channel>Application</Channel>
<Computer>Andreas-PC</Computer>
<Security />
</System>
- <EventData>
<Data>shoes.exe</Data>
<Data>0.0.0.0</Data>
<Data>4939c691</Data>
<Data>ntdll.dll</Data>
<Data>6.0.6001.18000</Data>
<Data>4791a783</Data>
<Data>c0000005</Data>
<Data>0002f8f4</Data>
<Data>1204</Data>
<Data>01c9b2047e4db061</Data>
</EventData>
</Event>
The same works OK on XP 32bit and Mac. Any ideas?