Modify

Opened 6 years ago

Closed 6 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 Changed 6 years ago by Jpm

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 Changed 6 years ago by Jon

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

Fixed by revision [8060] in version: 3.3.9.10

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

Action
as closed The owner will remain Jon.
Author


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

 
Note: See TracTickets for help on using tickets.