Modify

Opened 16 years ago

Closed 16 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 16 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

Fixed in version: 3.3.1.0

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 Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.