Modify ↓
Opened on Feb 9, 2009 at 6:57:40 PM
Closed on Feb 10, 2009 at 1:35:34 PM
Last modified on Feb 9, 2012 at 3:46:22 PM
#810 closed Bug (Fixed)
Local or Global declarations can ignore OnAutoItExit function
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | 3.3.1.0 | Component: | AutoIt |
| Version: | 3.3.0.0 | Severity: | None |
| Keywords: | Cc: |
Description (last modified by )
If I declare AND define a variable via a function and the function exits instead of returning then it ignores the OnAutoItExit() function.
For example, in the following script the MsgBox will NOT be displayed.
Local $Value = Repro() Func Repro() Exit 0 EndFunc Func OnAutoItExit() MsgBox(0,"Success","The OnAutoItExit function triggered!") EndFunc
However, this example will display the dialog.
Local $Value $Value = Repro() Func Repro() Exit 0 EndFunc Func OnAutoItExit() MsgBox(0,"Success","The OnAutoItExit function triggered!") EndFunc
Attachments (0)
Change History (4)
comment:1 by , on Feb 10, 2009 at 1:29:01 PM
| Description: | modified (diff) |
|---|
comment:2 by , on Feb 10, 2009 at 1:35:34 PM
| Resolution: | → Fixed |
|---|---|
| Status: | new → closed |
comment:4 by , on Feb 9, 2012 at 3:46:22 PM
| Milestone: | Future Release → 3.3.1.0 |
|---|
Note:
See TracTickets
for help on using tickets.

In fact with the new beta implementation of #414: better handling of OnAutoItStart/OnAutoItExit
It is fixed.