| View previous topic :: View next topic |
| Author |
Message |
Ripper
Joined: 24 Oct 2007 Posts: 17 Location: Germany
|
Posted: Sun Apr 13, 2008 7:52 pm Post subject: AHKCrashCode |
|
|
| Code: |
MsgBox,Crash!!!
OutputVar=1
MsgBox,% *(&OutputVar * 1000)
|
_________________
 |
|
| Back to top |
|
 |
Oberon
Joined: 18 Feb 2008 Posts: 408
|
Posted: Sun Apr 13, 2008 8:10 pm Post subject: |
|
|
That doesn't crash on my system. What version of AutoHotkey and Windows are you using? _________________
 |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 3877 Location: Pittsburgh
|
Posted: Sun Apr 13, 2008 8:21 pm Post subject: |
|
|
| AHKhelp wrote: | | Dereference (*): ... 0 is always retrieved if the address is 0; but any other invalid address must be avoided because it might crash the script | This section is meant for reporting bugs in AHK, not the bugs in your script  |
|
| Back to top |
|
 |
Ripp3r]D3[ Guest
|
Posted: Mon Apr 14, 2008 3:06 pm Post subject: |
|
|
I use this version 1.0.47.5
and when i start the script it will be crash
 |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 3877 Location: Pittsburgh
|
Posted: Mon Apr 14, 2008 3:12 pm Post subject: |
|
|
It should not crash under Vista (it catches invalid addresses). Do you try to write the shortest AHK script, which crash? Or what is the point? Try | Code: | | MsgBox % *(999999999) |
Last edited by Laszlo on Mon Apr 14, 2008 3:14 pm; edited 1 time in total |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Apr 14, 2008 3:14 pm Post subject: |
|
|
I will only report this bug (I use win XP Prof.)
The same Bug in the version 1.0.47.06
 |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Apr 14, 2008 3:16 pm Post subject: |
|
|
| Laszlo wrote: | | Code: | | MsgBox % *(999999999) |
|
The MsgBox give me "0" back so it is not crashed
 |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 3877 Location: Pittsburgh
|
Posted: Mon Apr 14, 2008 3:16 pm Post subject: |
|
|
| Laszlo wrote: | | This section is meant for reporting bugs in AHK, not the bugs in your script. |
| Anonymous wrote: | | Laszlo wrote: | | Code: | | MsgBox % *(999999999) |
|
The MsgBox give me "0" back so it is not crashed | It depends on the installed memory. Try fewer 9's.
Last edited by Laszlo on Mon Apr 14, 2008 3:18 pm; edited 2 times in total |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Apr 14, 2008 3:17 pm Post subject: |
|
|
This is a BUG or not?
Ahk Crash and so it is a Bug from the AHK-Programm |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 3877 Location: Pittsburgh
|
Posted: Mon Apr 14, 2008 3:22 pm Post subject: |
|
|
| This is a bug in the script. You want to access memory, which is inaccessible. The documentation says that it might crash, and it does. Computed memory references are dangerous. |
|
| Back to top |
|
 |
|