View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001220 | NoesisGUI | Unity | public | 2018-01-17 18:52 | 2018-12-27 13:33 |
| Reporter | ivan_b | Assigned To | sfernandez | ||
| Priority | high | Severity | major | ||
| Status | resolved | Resolution | won't fix | ||
| Product Version | 2.1.0b15 | ||||
| Target Version | 2.2.0 | ||||
| Summary | 0001220: Memory issue | ||||
| Description | In the Control gallery sample, when switching between two items, the memory usage grows and it is never released. | ||||
| Attached Files | |||||
| Platform | Any | ||||
|
I'm trying to reproduce the problem with the ControlGallery and after switching between samples I see the memory growing, but after Garbage Collector kicks in memory is returned to the system. |
|
|
I think I have located the problem, the problem is not when you load the xaml's as in the control gallery sample but when you use a UserControl and the inside a user control you use Noesis.GUI.LoadComponent. |
|
|
Thanks for the project ivan... I'm investigating the issue. |
|
|
Hi ivan, The problem is related to the event hook (Initialized in your example). Our current implementation requires to store the event handler in a static dictionary to communicate with native code. This is causing the delegate Target to remain strongly referenced and object is not released. In your scenario this problem can be workaround by manually unregistering from the events when control is removed from the tree: namespace NoesisBug |
|
|
Thanks for the help. I don't mind if it stays this way :). |
|
|
I found another simple way to break the strong reference, to allow memory to be correctly disposed. namespace NoesisBug This will correctly destroy Menu instances, even when registering against own events. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2018-01-17 18:52 | ivan_b | New Issue | |
| 2018-01-17 18:52 | ivan_b | Tag Attached: 2.1Beta | |
| 2018-01-17 20:41 | sfernandez | Assigned To | => sfernandez |
| 2018-01-17 20:41 | sfernandez | Status | new => assigned |
| 2018-01-18 00:34 | sfernandez | Status | assigned => feedback |
| 2018-01-18 00:34 | sfernandez | Note Added: 0005025 | |
| 2018-01-20 15:56 | ivan_b | File Added: Noesis bug.rar | |
| 2018-01-20 15:56 | ivan_b | Note Added: 0005033 | |
| 2018-01-20 15:56 | ivan_b | Status | feedback => assigned |
| 2018-01-23 17:48 | sfernandez | Note Added: 0005043 | |
| 2018-01-25 13:53 | sfernandez | Status | assigned => feedback |
| 2018-01-25 13:53 | sfernandez | Note Added: 0005051 | |
| 2018-01-25 14:14 | ivan_b | Note Added: 0005052 | |
| 2018-01-25 14:14 | ivan_b | Status | feedback => assigned |
| 2018-11-01 02:14 | jsantos | View Status | public => private |
| 2018-11-22 11:58 | sfernandez | Target Version | => 2.2.0 |
| 2018-11-22 11:58 | sfernandez | Platform | => Any |
| 2018-11-22 11:58 | sfernandez | View Status | private => public |
| 2018-12-27 13:33 | sfernandez | Status | assigned => resolved |
| 2018-12-27 13:33 | sfernandez | Resolution | open => won't fix |
| 2018-12-27 13:33 | sfernandez | Note Added: 0005378 | |
| 2025-10-10 13:29 | jsantos | Category | Unity3D => Unity |