Opened 8 years ago

Closed 8 years ago

#3218 closed Bug (No Bug)

_Timer_KillTimer don't kill timer.

Reported by: autoBert Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


    #include <Timers.au3>

Global $hGUI, $g_iIDTimer


Func _Example_TimeOut()
	Local $hGUI = GUICreate("", 140, 64, -1, -1, 0)
	GUICtrlCreateLabel("Waiting for timeout", 8, 8, 115, 17)

	$g_iIDTimer = _Timer_SetTimer($hGUI, 10000, "TimedOut") ; create timer
	While 1
		If GUIGetMsg()= -3 Then ExitLoop
EndFunc   ;==>_Example_TimeOut

Func TimedOut($hWnd, $iMsg, $iIDtimer, $iTime)
	#forceref $hWnd, $iMsg, $iIDTimer,$iTime
	ConsoleWrite('TimedOut happend'&@error&@CRLF)
	ConsoleWrite($__g_aTimers_aTimerIDs[1][0]&@CRLF);<=== shows $g_iIDTimer which i have deleted 
EndFunc   ;==>TimedOut

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by autoBert

and error found, sorry first ticket and a False Positive

comment:2 Changed 8 years ago by Jpm

  • Resolution set to No Bug
  • Status changed from new to closed

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

as closed The ticket will remain with no owner.

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

Note: See TracTickets for help on using tickets.