C
C#12mo ago
Denis

❔ WinFroms app with 10k+ handles and not crashing?

Hi! I have a WinForms app running, which adds and removes a ton of entries in a TreeList control - ongoing process logging. The entry is visible as long as the process is running, or it has failed. Once the process completes successfully it is removed from the UI. The removal of the entry from the UI involves disposing of everything, removing all events, clearing all collections etc... When checking out my program in Task Manager, I can see that GDI objects and User objects are within reasonable values - 39 - 62. BUT the Handles count?? It's like 12 224 as I'm writing this, and growing.... So like, is this fine or should I be worried? Afaik the limit is 10k, or does this not apply to Handles? Place your bets, on how high it can go, we're at 13k already
1 Reply
Accord
Accord12mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.