App Crash for digit function

Discuss the future of the AutoHotkey language
lexikos
Posts: 5455
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: App Crash for digit function

10 Jul 2017, 03:14

I tested this on the a080 and it correctly produced an error, not an App Crash.
Helgef
Posts: 2478
Joined: 17 Jul 2016, 01:02
Contact:

Re: App Crash for digit function

10 Jul 2017, 07:17

It crashes for me too, no error.

Spoiler
just me
Posts: 4865
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: App Crash for digit function

10 Jul 2017, 07:43

It dies silently (2.0-a080-d1c5ddf x64):

Code: [Select all] [Download] GeSHi © Codebox Plus

MsgBox(A_AhkVersion)
While True {
ToolTip("Still alive!")
Sleep(1000)
}

Esc::ExitApp

m(){
0
}
Remaining with AHK 1.1.25.02 until v2 will become beta.
HotKeyIt
Posts: 1549
Joined: 29 Sep 2013, 18:35
Contact:

Re: App Crash for digit function

10 Jul 2017, 15:01

It works properly when run from SciTE but crashes when run via double click!
lexikos
Posts: 5455
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: App Crash for digit function

15 Jul 2017, 22:04

I forgot to look into this (not fixed in v2.0-a081). Maybe next time.
lexikos
Posts: 5455
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: App Crash for digit function

22 Jul 2017, 21:31

It has nothing at all to do with having a digit. An invalid pointer is dereferenced within the error-text generating code because the line has neither a pre-resolved function nor a parameter (i.e. because pre-resolution of the function failed; i.e. the function doesn't exist). As with any invalid dereference, whether you get an app crash depends on seemingly random factors (anything which affects what the invalid pointer points to).

It will be fixed.

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: No registered users and 2 guests