3 ms·
The managed languages create additional hurdles for handle leaks. My prior experience with the .net GC is that it responds to memory pressure, and not necessari
by asveikau 5y ago
The managed languages create additional hurdles for handle leaks. My prior experience with the .net GC is that it responds to memory pressure, and not necessarily to open handles. So when people write code that relies on GC for cleanup, it has a bit of a blind spot for the handles -- they don't take much memory in your process so it won't know to invoke GC.
There are some patterns to help, like using().