| View previous topic :: View next topic |
| Author |
Message |
Icarus
Joined: 24 Nov 2005 Posts: 323
|
Posted: Tue May 06, 2008 1:05 pm Post subject: Incorrect Width in Picture Element crashes AHK |
|
|
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 |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2364 Location: Australia, Qld
|
Posted: Wed May 07, 2008 9:14 am Post subject: |
|
|
| Which version of AutoHotkey are you using? I'm using v1.0.47.06 on Vista, and it does not crash. |
|
| Back to top |
|
 |
Icarus
Joined: 24 Nov 2005 Posts: 323
|
Posted: Wed May 07, 2008 10:05 am Post subject: |
|
|
I am using 1.0.47.04 on XP
Maybe it was fixed. I will upgrade and post back here. |
|
| Back to top |
|
 |
Icarus
Joined: 24 Nov 2005 Posts: 323
|
Posted: Wed May 07, 2008 11:14 am Post subject: |
|
|
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 |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 753 Location: London, UK
|
Posted: Wed May 07, 2008 11:51 am Post subject: |
|
|
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 |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2364 Location: Australia, Qld
|
Posted: Thu May 08, 2008 8:55 am Post subject: |
|
|
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 |
|
 |
Icarus
Joined: 24 Nov 2005 Posts: 323
|
Posted: Thu May 08, 2008 10:21 am Post subject: |
|
|
| Yes, crashes also with w1. |
|
| Back to top |
|
 |
|