Modify ↓
Opened 17 years ago
Closed 17 years ago
#763 closed Bug (Fixed)
GUICtrlCreateIcon returns a 0 handle but doesn't destroy the created control.
| Reported by: | Jos | Owned by: | Jpm |
|---|---|---|---|
| Milestone: | 3.3.1.0 | Component: | AutoIt |
| Version: | 3.3.0.0 | Severity: | None |
| Keywords: | Cc: |
Description
GUICtrlCreateIcon returns a 0 handle but doesn't destroy the created control when the specified inpuyt DLL doesn't exists.
It should either return the valid handle for the control and only set @Error or Delete the Control when UpdateICON() routine fails.
$gui = GUICreate("TEST")
GUISetBkColor(0x0A659C)
$a = GUICtrlCreateIcon(@SystemDir & "\shell32.dll", -22, 10, 10, 32, 32)
ConsoleWrite("$a = " & $a & "- " & @error & @CRLF)
$b = GUICtrlCreateIcon("aNonExistantFileName.dll", -22, 10, 52, 32, 32)
ConsoleWrite("$b = " & $b & "- " & @error & @CRLF)
GUISetState()
Do
Sleep(10)
Until GUIGetMsg() = -3
Attachments (0)
Change History (1)
comment:1 Changed 17 years ago by Jpm
- Milestone set to 3.3.1.0
- Owner set to Jpm
- Resolution set to Fixed
- Status changed from new to closed
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.
Note: See
TracTickets for help on using
tickets.

Fixed in version: 3.3.1.0