AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Incorrect Width in Picture Element crashes AHK

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Icarus



Joined: 24 Nov 2005
Posts: 323

PostPosted: Tue May 06, 2008 1:05 pm    Post subject: Incorrect Width in Picture Element crashes AHK Reply with quote

I believe this is a bug.

I accidentally put "-" somewhere in the Width property of a Picture element, and caused AHK to crash.

Here is the reproduction code:
Code:

IfNotExist WhitePixel.gif
   UrlDownloadToFile http://www.cape300foundation.org.za/images/white-pixel.gif, WhitePixel.gif

Gui Add, Picture, w1-0 h10, WhitePixel.gif
Gui Show
Back to top
View user's profile Send private message Visit poster's website
Lexikos



Joined: 17 Oct 2006
Posts: 2364
Location: Australia, Qld

PostPosted: Wed May 07, 2008 9:14 am    Post subject: Reply with quote

Which version of AutoHotkey are you using? I'm using v1.0.47.06 on Vista, and it does not crash.
Back to top
View user's profile Send private message
Icarus



Joined: 24 Nov 2005
Posts: 323

PostPosted: Wed May 07, 2008 10:05 am    Post subject: Reply with quote

I am using 1.0.47.04 on XP
Maybe it was fixed. I will upgrade and post back here.
Back to top
View user's profile Send private message Visit poster's website
Icarus



Joined: 24 Nov 2005
Posts: 323

PostPosted: Wed May 07, 2008 11:14 am    Post subject: Reply with quote

Tested with latest autohotkey (06) and it crashes.
Tested on two XP machines.

Can any non-vista user confirm?
(maybe there is one good thing about vista after all...)
Back to top
View user's profile Send private message Visit poster's website
Superfraggle



Joined: 02 Nov 2004
Posts: 753
Location: London, UK

PostPosted: Wed May 07, 2008 11:51 am    Post subject: Reply with quote

Confirmed, WIN XP SP2.

Crashes when running AHK v1.0.47.06 using above script.
_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle
Back to top
View user's profile Send private message MSN Messenger
Lexikos



Joined: 17 Oct 2006
Posts: 2364
Location: Australia, Qld

PostPosted: Thu May 08, 2008 8:55 am    Post subject: Reply with quote

AutoHotkey uses atoi() to convert text to integers.
MSDN wrote:
The function stops reading the input string at the first character that it cannot recognize as part of a number.
In other words, it should interpret "w1-0" as "w1", and does when I debug it.

Try "w1"...
Back to top
View user's profile Send private message
Icarus



Joined: 24 Nov 2005
Posts: 323

PostPosted: Thu May 08, 2008 10:21 am    Post subject: Reply with quote

Yes, crashes also with w1.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group