View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001153 | NoesisGUI | C++ SDK | public | 2017-09-20 03:31 | 2022-11-16 16:39 |
Reporter | nikobarli | Assigned To | sfernandez | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 2.0.2f2 | ||||
Target Version | 3.1.6 | Fixed in Version | 3.1.6 | ||
Summary | 0001153: Memory leak when using ContextMenuService.PlacementTarget | ||||
Description | From http://www.noesisengine.com/forums/viewtopic.php?f=3&t=1178 The following XAML causes memory leak. The datacontext object (i.e. the object that provide SomeProperty property) is not released even after UI element is destroyed. <Grid x:Name="MyGrid" Grid.Row="0" Background="WhiteSmoke" ContextMenuService.PlacementTarget="{Binding ElementName=MyGrid}"> <Grid.ContextMenu> <ContextMenu> <MenuItem Header="{Binding SomeProperty}"></MenuItem> </ContextMenu> </Grid.ContextMenu> </Grid> Need to activate the context menu at least once (i.e right-click on the grid) to reproduce the leak. Memory doesn't leak if I either remove the ContextMenuService.PlacementTarget or the Header="{Binding SomeProperty}". | ||||
Tags | No tags attached. | ||||
Platform | Any | ||||
related to | 0001338 | resolved | sfernandez | cyclic reference when using child user control with DataContext binding on the Parent Control |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-09-20 03:31 | nikobarli | New Issue | |
2018-11-01 02:14 | jsantos | View Status | public => private |
2018-11-22 10:01 | sfernandez | Relationship added | related to 0001338 |
2018-11-22 10:01 | sfernandez | Assigned To | => sfernandez |
2018-11-22 10:01 | sfernandez | Status | new => assigned |
2018-11-22 10:01 | sfernandez | View Status | private => public |
2018-11-22 10:01 | sfernandez | Platform | => Any |
2021-06-03 11:32 | sfernandez | Target Version | => 3.1 |
2022-11-16 16:39 | sfernandez | Status | assigned => resolved |
2022-11-16 16:39 | sfernandez | Resolution | open => fixed |
2022-11-16 16:39 | sfernandez | Fixed in Version | => 3.1.6 |
2022-11-16 16:39 | sfernandez | Target Version | 3.1 => 3.1.6 |
2022-11-16 16:39 | sfernandez | Note Added: 0008161 |