Error handling

Discuss the future of the AutoHotkey language
User avatar
derz00
Posts: 244
Joined: 02 Feb 2016, 17:54

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.)



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

:wave:
either stumped or stunned
SirRFI
Posts: 228
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] [Expand] [Download] GeSHi © Codebox Plus


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=autohotkey] forum tag to share your code.
Click on (Accept this answer) on top-right part of the post if it has answered your question / solved your problem.
User avatar
derz00
Posts: 244
Joined: 02 Feb 2016, 17:54

Re: Error handling

19 Sep 2017, 14:30

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



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.
either stumped or stunned
Helgef
Posts: 2228
Joined: 17 Jul 2016, 01:02
Contact:

Re: Error handling

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: 244
Joined: 02 Feb 2016, 17:54

Re: Error handling

19 Sep 2017, 18:56

Sure enough. Thanks for pointing it out.
either stumped or stunned

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: No registered users and 1 guest