Modify ↓
Opened 18 years ago
Closed 18 years ago
#193 closed Bug (Fixed)
guictrldelete on context menu already deleted causes win32 exception
| Reported by: | Owned by: | J-Paul Mesnage | |
|---|---|---|---|
| Milestone: | 3.2.11.6 | Component: | AutoIt |
| Version: | 3.2.10.0 | Severity: | |
| Keywords: | Windows XP SP 2 | Cc: |
Description
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 3.2.11.5, 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)
;filter
$item = guictrlcreatemenuitem("Word", $context)
;seems to
$item = guictrlcreatemenuitem("Another", $context)
;hate similar lines
$item = guictrlcreatemenuitem("One", $context)
guictrldelete($context)
;blank line to try to defeat filter
guictrldelete($context)
guisetstate()
while 1=1
wend
Attachments (0)
Change History (2)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
| Milestone: | → 3.2.11.6 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed in version: 3.2.11.6
Note:
See TracTickets
for help on using tickets.

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