librelist archives

« back to archive

why caused exception on windows?

why caused exception on windows?

From:
XuTeng
Date:
2010-03-31 @ 06:09
hi, I am a newbie to shoes, and I wrote the following simple code which 
caused exception
on windows. anyone please help me ?

Shoes.app do

    stack :height => 100 do
      flow do
      	button("Click me!") { alert("Good job.") }
      end
    end

end


by the way , I use the following versions.

ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]
shoes raisins (0.r1134) [i386-mswin32]

thanks.

Re: [shoes] why caused exception on windows?

From:
Satoshi Asakawa
Date:
2010-03-31 @ 12:34
Hi XuTeng,

Welcome to Shoes world! :)

I confirmed your problem on my Windows XP laptop with Raisins (0.r1134).
I think that's a bug, sorry.
If you don't have to use specific width and height, it's better to omit
them.

The following may work with no errors.

Shoes.app do
  stack do
    flow do
      button("Click me!") { alert("Good job.") }
    end
  end
end

Cheers,
ashbb

ps. If you don't mind using a local build, try 0.r1403. ;-)
    http://www.rin-shun.com/shoes/index.html

Re: [shoes] why caused exception on windows?

From:
XuTeng
Date:
2010-04-02 @ 08:50
hi, ashbb

The problem does not happen when I use the 0.r1403.
Thank you very much 

Hi XuTeng,
> 
> Welcome to Shoes world! :)
> 
> I confirmed your problem on my Windows XP laptop with Raisins (0.r1134).
> I think that's a bug, sorry.
> If you don't have to use specific width and height, it's better to omit them.
> 
> The following may work with no errors.
> 
> Shoes.app do
> ? stack do
> ??? flow do
> ????? button("Click me!") { alert("Good job.") }
> ??? end
> ? end
> end
> 
> Cheers,
> ashbb
> 
> ps. If you don't mind using a local build, try 0.r1403. ;-)
> ??? http://www.rin-shun.com/shoes/index.html
> ??? 

---
xuteng 

Re: [shoes] why caused exception on windows?

From:
Satoshi Asakawa
Date:
2010-04-02 @ 11:33
Hi Xuteng,

Glad to hear that. Thank you for using Policeman! :-D

ashbb

Re: [shoes] why caused exception on windows?

From:
i5m
Date:
2010-03-31 @ 13:00
Weird, works ok for me on Windows XP and Raisins.


-----------------------
i5m.co.uk
GPG Key: 0xA18A602B


On Wed, Mar 31, 2010 at 1:34 PM, Satoshi Asakawa <ashbbb@gmail.com> wrote:

> Hi XuTeng,
>
> Welcome to Shoes world! :)
>
> I confirmed your problem on my Windows XP laptop with Raisins (0.r1134).
> I think that's a bug, sorry.
> If you don't have to use specific width and height, it's better to omit
> them.
>
> The following may work with no errors.
>
> Shoes.app do
>   stack do
>
>     flow do
>       button("Click me!") { alert("Good job.") }
>     end
>   end
> end
>
> Cheers,
> ashbb
>
> ps. If you don't mind using a local build, try 0.r1403. ;-)
>     http://www.rin-shun.com/shoes/index.html
>
>

Re: [shoes] why caused exception on windows?

From:
i5m
Date:
2010-03-31 @ 13:02
Oops spoke too soon. Clicking works once. Clicking again causes a crash.
-----------------------
i5m.co.uk
GPG Key: 0xA18A602B


On Wed, Mar 31, 2010 at 2:00 PM, i5m <i5ivem@googlemail.com> wrote:

> Weird, works ok for me on Windows XP and Raisins.
>
>
>
>
> On Wed, Mar 31, 2010 at 1:34 PM, Satoshi Asakawa <ashbbb@gmail.com> wrote:
>
>> Hi XuTeng,
>>
>> Welcome to Shoes world! :)
>>
>> I confirmed your problem on my Windows XP laptop with Raisins (0.r1134).
>> I think that's a bug, sorry.
>>
>