Page 1 of 1

App Crash for digit function

Posted: 09 Jul 2017, 08:18
by HotKeyIt
Following code causes an app crash:

Code: Select all

m(){
	0
}

Re: App Crash for digit function

Posted: 10 Jul 2017, 03:14
by lexikos
I tested this on the a080 and it correctly produced an error, not an App Crash.

Re: App Crash for digit function

Posted: 10 Jul 2017, 07:17
by Helgef
It crashes for me too, no error.

Code: Select all

Msgbox A_AHKVersion ; 2.0-a080-d1c5ddf
Spoiler

Re: App Crash for digit function

Posted: 10 Jul 2017, 07:43
by just me
It dies silently (2.0-a080-d1c5ddf x64):

Code: Select all

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

Esc::ExitApp

m(){
   0
}

Re: App Crash for digit function

Posted: 10 Jul 2017, 15:01
by HotKeyIt
It works properly when run from SciTE but crashes when run via double click!

Re: App Crash for digit function

Posted: 15 Jul 2017, 22:04
by lexikos
I forgot to look into this (not fixed in v2.0-a081). Maybe next time.

Re: App Crash for digit function  Topic is solved

Posted: 22 Jul 2017, 21:31
by lexikos
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.