Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#779 closed Bug (Fixed)

Infinite Loop On Exit

Reported by: anonymous Owned by: J-Paul Mesnage
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 by Valik, 17 years ago

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 by J-Paul Mesnage, 17 years ago

Milestone: 3.3.1.0
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed in version: 3.3.1.0

comment:3 by Valik, 17 years ago

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

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.