© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
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
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Background Opacity in WinFroms
C#CC# / help
4y ago
✅ trying to debug but app is crashing
C#CC# / help
3y ago
❔ embed and unity app/game and interact with it
C#CC# / help
3y ago
Problems with docker and my app image
C#CC# / help
2y ago