When i profile the code, i still have a root referenced "Item" object but i don't know where i can dispose..., The exited method is triggered and the _queue has removed the "Item" object from the queue.
When i read documentation, the concurrentqueue copy the reference into the queue.
Can you help me to find out where the memory leak is?
Thank you,
Kind Regards.
C#.NET Programming
Last Comment
Dnx_7
8/22/2022 - Mon
Dan Violet Sagmiller (He/Him)
Are you sure nothing else is holding on to the Item object? I can see you grabbed a reference from your code, and called the dispose method, however, something else may still have a reference to it. which means it will never get collected.
You referred to this:
i still have a root referenced "Item" object
I'm wondering if that means you are looking at another reference still tied to the object. For instance, are you removing an item from a tree, but still leaving parent/child references intact, or something similar?
You referred to this:
I'm wondering if that means you are looking at another reference still tied to the object. For instance, are you removing an item from a tree, but still leaving parent/child references intact, or something similar?