Opened 16 years ago

Closed 16 years ago

#193 closed Bug (Fixed)

guictrldelete on context menu already deleted causes win32 exception

Reported by: MeJonah@… Owned by: Jpm
Milestone: Component: AutoIt
Version: Severity:
Keywords: Windows XP SP 2 Cc:


Attempting to use guictrldelete on a control created by guictrlcreatecontextmenu() which had already been deleted (yes, I know, if I were tracking better that should never happen) causes an "unhandled win32 exception" and a crash. The behavior is repeatable in, but does not occur in 3.2.10.

Example code:

#include <guitreeview.au3>

$gui = guicreate("TEST", 500, 500)
$treeview = guictrlcreatetreeview(0, 0, 500, 500)

$control = guictrlcreatetreeviewitem("TEST", $treeview)

$context = guictrlcreatecontextmenu($control)
$item = guictrlcreatemenuitem("Random", $context)
$item = guictrlcreatemenuitem("Word", $context)
;seems to
$item = guictrlcreatemenuitem("Another", $context)
;hate similar lines
$item = guictrlcreatemenuitem("One", $context)

;blank line to try to defeat filter


while 1=1

Attachments (0)

Change History (2)

comment:1 Changed 16 years ago by anonymous

The bug begins with 3.11.2 and is present in every build up to 3.11.5.

comment:2 Changed 16 years ago by Jpm

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

Fixed 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.