Error handling Topic is solved

Report problems with documented functionality
User avatar
derz00
Posts: 497
Joined: 02 Feb 2016, 17:54
Location: Middle of the round cube
Contact:

Error handling

18 Sep 2017, 14:18

This line crashed my script silently. Try running it with v2. (I had typed it in there, than went to the docs because I couldn't remember what AHK v2 used, than forgot that it was there.)

Code: Select all

IfExist
I guess error handling takes a fair amount of development, so I figured the devs would want to know. :)

:wave:
try it and see
...
SirRFI
Posts: 404
Joined: 25 Nov 2015, 16:52

Re: Error handling

19 Sep 2017, 12:31

It's not this line specifically that causes silent crash.

Code: Select all

#Persistent
#SingleInstance FORCE



Return

iPretendToBeVariableIguess ; Causes silent crash by just being in the code

#If (A_IsCompiled != 1)
F10::Reload
This also causes silent crash on start up, despite being in "zombie code" area (code flow / thread can't go there) except for load up.

Offtopic - v2 related about GUI: https://autohotkey.com/boards/viewtopic.php?f=5&t=37157 - anyone?
Use

Code: Select all

[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.
User avatar
derz00
Posts: 497
Joined: 02 Feb 2016, 17:54
Location: Middle of the round cube
Contact:

Re: Error handling

19 Sep 2017, 14:30

Code: Select all

---------------------------
AHK_CQT_437072484
---------------------------
Error at line 9.

Line Text: iPretendToBeVariableIguess
Error: This line does not contain a recognized action.

The program will exit.
---------------------------
OK   
---------------------------
This is the error v1 gives when there is a unrecognized word. It must be as simple as this not be programmed correctly in v2.
try it and see
...
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: Error handling  Topic is solved

19 Sep 2017, 17:37

Probably the same as this.
lexikos wrote: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.
Cheers.
User avatar
derz00
Posts: 497
Joined: 02 Feb 2016, 17:54
Location: Middle of the round cube
Contact:

Re: Error handling

19 Sep 2017, 18:56

Sure enough. Thanks for pointing it out.
try it and see
...

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 23 guests