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 

AHKCrashCode

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Ripper



Joined: 24 Oct 2007
Posts: 17
Location: Germany

PostPosted: Sun Apr 13, 2008 7:52 pm    Post subject: AHKCrashCode Reply with quote

Code:

MsgBox,Crash!!!
OutputVar=1
MsgBox,% *(&OutputVar * 1000)

_________________
Back to top
View user's profile Send private message
Oberon



Joined: 18 Feb 2008
Posts: 408

PostPosted: Sun Apr 13, 2008 8:10 pm    Post subject: Reply with quote

That doesn't crash on my system. What version of AutoHotkey and Windows are you using?
_________________
Back to top
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 3877
Location: Pittsburgh

PostPosted: Sun Apr 13, 2008 8:21 pm    Post subject: Reply with quote

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 Wink
Back to top
View user's profile Send private message Visit poster's website
Ripp3r]D3[
Guest





PostPosted: Mon Apr 14, 2008 3:06 pm    Post subject: Reply with quote

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

PostPosted: Mon Apr 14, 2008 3:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Guest






PostPosted: Mon Apr 14, 2008 3:14 pm    Post subject: Reply with quote

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






PostPosted: Mon Apr 14, 2008 3:16 pm    Post subject: Reply with quote

Laszlo wrote:
Code:
MsgBox % *(999999999)

The MsgBox give me "0" back so it is not crashed

Confused
Back to top
Laszlo



Joined: 14 Feb 2005
Posts: 3877
Location: Pittsburgh

PostPosted: Mon Apr 14, 2008 3:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Guest






PostPosted: Mon Apr 14, 2008 3:17 pm    Post subject: Reply with quote

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

PostPosted: Mon Apr 14, 2008 3:22 pm    Post subject: Reply with quote

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
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 -> Ask for Help 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