Modify

Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#810 closed Bug (Fixed)

Local or Global declarations can ignore OnAutoItExit function

Reported by: david@… Owned by:
Milestone: 3.3.1.0 Component: AutoIt
Version: 3.3.0.0 Severity: None
Keywords: Cc:

Description (last modified by Jpm)

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 Changed 10 years ago by Jpm

  • Description modified (diff)

comment:2 Changed 10 years ago by Jpm

  • Resolution set to Fixed
  • Status changed from new to closed

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

comment:3 Changed 10 years ago by TicketCleanup

  • Milestone set to Future Release

Automatic ticket cleanup.

comment:4 Changed 7 years ago by Jpm

  • Milestone changed from Future Release to 3.3.1.0

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.