Opened 14 years ago

Closed 14 years ago

#1734 closed Bug (Fixed)

GUICtrlCreateAvi with negative subfileid parameter crashes the script

Reported by: MrCreatoR <mscreator@…> Owned by: Jpm
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


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)


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)


    ; Run the GUI until the dialog is closed
    While 1
        $msg = GUIGetMsg()

            Case $msg = $GUI_EVENT_CLOSE

            Case $msg = $buttonstart
                GUICtrlSetState($ani1, 1)

            Case $msg = $buttonstop
                GUICtrlSetState($ani1, 0)

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: (Os:WIN_XP/X86/Service Pack 3 Language:0419 Keyboard:00000409 Cpu:X64)

Attachments (0)

Change History (1)

comment:1 Changed 14 years ago by Jpm

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

Fixed by revision [5942] in version:

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

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

Note: See TracTickets for help on using tickets.