Modify ↓
Opened 17 years ago
Closed 17 years ago
#193 closed Bug (Fixed)
guictrldelete on context menu already deleted causes win32 exception
Reported by: | MeJonah@… | Owned by: | Jpm |
---|---|---|---|
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 Changed 17 years ago by anonymous
comment:2 Changed 17 years ago by Jpm
- Milestone set to 3.2.11.6
- Owner set to Jpm
- Resolution set to Fixed
- Status changed from new to closed
Fixed in version: 3.2.11.6
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.
The bug begins with 3.11.2 and is present in every build up to 3.11.5.