Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#779 closed Bug (Fixed)

Infinite Loop On Exit

Reported by: anonymous Owned by: Jpm
Milestone: 3.3.1.0 Component: AutoIt
Version: 3.3.0.0 Severity: None
Keywords: Cc:

Description

Infinite Loop On Exit

I opened this test script and then closed it. When I pressed the close button, it started refreshing the contents all the other open windows. It slowed down my computer so I couldn't do much. Task Manager couldn't close it as it the script was refreshing the window. I could only end it by pressing CTRL + Pause/Break to force quit in Scite.

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 192, 124)
$Edit1 = GUICtrlCreateEdit("", 80, 64, 329, 193)
GUICtrlSetData(-1, "Edit1")
$Button1 = GUICtrlCreateButton("Button1", 88, 280, 105, 25, 0)
$Button2 = GUICtrlCreateButton("Button2", 224, 288, 153, 25, 0)
$List1 = GUICtrlCreateList("", 448, 64, 129, 201)
GUISetState(@SW_SHOW)
$Form2 = GUICreate("Form1", 200, 200, 200, 200, BitOR($WS_SYSMENU,$WS_CAPTION,$WS_CHILD,$WS_BORDER,$WS_CLIPSIBLINGS), BitOR($WS_EX_MDICHILD,$WS_EX_WINDOWEDGE,$WS_EX_LAYERED), $Form1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
	EndSwitch
WEnd

Attachments (0)

Change History (3)

comment:1 Changed 15 years ago by Valik

You should not specify WS_EX_LAYERED when specifying WS_CHILD. The two are not compatible and as a result no window is created. Apparently the failure to create the window is causing something in AutoIt to go wrong...

You need to remove WS_EX_LAYERED to solve your problem. Even when AutoIt is fixed your code will still not work how you intend.

comment:2 Changed 15 years ago by Jpm

  • Milestone set to 3.3.1.0
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version: 3.3.1.0

comment:3 Changed 15 years ago by Valik

Okay, what the hell. After seeing how you just fixed that JP, I thought I fixed that years ago? I remember seeing there was a problem in that area and so I fixed it. Unless I only fixed it for controls and not GUI's...

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 owner will remain Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.