App Crash for digit function Topic is solved

Report problems with documented functionality
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

App Crash for digit function

09 Jul 2017, 08:18

Following code causes an app crash:

Code: Select all

m(){
	0
}
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

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: 4709
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.

Code: Select all

Msgbox A_AHKVersion ; 2.0-a080-d1c5ddf
Spoiler
just me
Posts: 9442
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

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

Esc::ExitApp

m(){
   0
}
HotKeyIt
Posts: 2364
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: 9583
Joined: 30 Sep 2013, 04:07
Contact:

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: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: App Crash for digit function  Topic is solved

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 “Bug Reports”

Who is online

Users browsing this forum: ZhuangQu and 19 guests