﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1734	GUICtrlCreateAvi with negative subfileid parameter crashes the script	MrCreatoR <mscreator@…>	Jpm	"The following example is the same example as in help file for GUICtrlCreateAvi, only with one different -> '''165''' replaced with '''-165''':


{{{
#include <GUIConstantsEx.au3>

Opt('MustDeclareVars', 1)

Example()

Func Example()
    Local $ani1, $buttonstart, $buttonstop, $msg

    GUICreate(""My GUI Animation"", 300, 200)
    $ani1 = GUICtrlCreateAvi(@SystemDir & ""\shell32.dll"", -165, 50, 10)

    $buttonstart = GUICtrlCreateButton(""start"", 50, 150, 70, 22)
    $buttonstop = GUICtrlCreateButton(""stop"", 150, 150, 70, 22)

    GUISetState()

    ; Run the GUI until the dialog is closed
    While 1
        $msg = GUIGetMsg()

        Select
            Case $msg = $GUI_EVENT_CLOSE
                ExitLoop

            Case $msg = $buttonstart
                GUICtrlSetState($ani1, 1)

            Case $msg = $buttonstop
                GUICtrlSetState($ani1, 0)

        EndSelect
    WEnd
EndFunc   ;==>Example
}}}

The script is hanging up if drwtsn32 is enabled in the system, otherwise there is an system error message and the script exits with code: -1073741819

'''AutoIt:3.3.6.1   (Os:WIN_XP/X86/Service Pack 3   Language:0419 Keyboard:00000409 Cpu:X64)'''"	Bug	closed	3.3.7.0	AutoIt	3.3.6.1	None	Fixed		
