Modify

Opened 13 years ago

Closed 13 years ago

#2286 closed Bug (Fixed)

GuiCtrtlGetState without a controlID parameter runs but aborts AutoIt

Reported by: anonymous Owned by: Jon
Milestone: 3.3.9.10 Component: AutoIt
Version: 3.3.9.4 Severity: None
Keywords: Cc:

Description

GuiCtrtlGetState without a controlID parameter runs but aborts AutoIt, with rc:-1073741819. This was my test script:

#include <GuiConstants.au3>
GUICreate(" My GUI input")
GUICtrlCreateInput("", 10, 35, 300, 20)
$btnTest = GUICtrlCreateButton("Test",30,80)
 GUISetState()

 $msg = 0
 While True
   $msg = GUIGetMsg()
    Switch $msg
      case $GUI_EVENT_CLOSE
         Exit
      Case $btnTest
         GUICtrlGetState()
   EndSwitch
   WEnd

It aborts when the Test button is clicked.

It is illogical that GuiCtrlGetState be runnable without a parameter, because it must get the state of a control.

The controlID parameter should be required.

Guiness has suggested that I report this bug.

Attachments (0)

Change History (2)

comment:1 by J-Paul Mesnage, 13 years ago

I agree that the controlid must mandatory.
It is the only GUICtrl...() function which does not require a controlId.

Certainly a bug since a long time ...

comment:2 by Jon, 13 years ago

Milestone: 3.3.9.10
Owner: set to Jon
Resolution: Fixed
Status: newclosed

Fixed by revision [8060] in version: 3.3.9.10

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


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