Ticket #1367: prova.au3

File prova.au3, 606 bytes (added by isolation@…, on Dec 26, 2009 at 6:19:47 PM)

GUIDelete crashes the executable

Line 
1#include <GUIConstantsEx.au3>
2#include <WindowsConstants.au3>
3
4;_DebugBugReportEnv()=AutoIt:3.3.2.0 (Os:WIN_XP/X86/Service Pack 3 Language:0410 Keyboard:00000410 Cpu:X64)
5
6$hGUI = GUICreate("Bug tester", 300, 200)
7
8$nButton = GUICtrlCreateButton("Bug", 90, 50, 120, 30)
9
10GUIRegisterMsg($WM_COMMAND, "MY_WM_COMMAND")
11GUISetState()
12While 1
13 $GUIMsg = GUIGetMsg()
14
15 If $GUI_EVENT_CLOSE = $GUIMsg Then ExitLoop
16WEnd
17Func MY_WM_COMMAND($hWnd, $Msg, $wParam, $lParam)
18 If ($lParam = GUICtrlGetHandle($nButton)) Then GUIDelete($hWnd)
19 Return $GUI_RUNDEFMSG
20EndFunc ;==>MY_WM_COMMAND
21
22