I've got a WPF TabControl containing a WindowsFormsHost in each TabPage. User can add and remove TabPage as needed: when the user removes a Tab, I obviously dispose the child control and the host itself.
Using VS Diagnostic Tool, I've found a leak of WindowsFormsHost:
I've also reproduced the issue using an empty WindowsFormsHost, with no inner child, tested with framework 4.0 and 4.7.2. Something like:
<Grid>
<WindowsFormsHost/>
How can I solve? GC.Collect() does not do the trick.