C# Handles Count

后端 未结 2 1644
悲&欢浪女
悲&欢浪女 2021-01-12 23:57

I was looking into the possibility that one of my applications might have a memory leak, so started playing about with some very basic code samples. One I ended up with, whe

相关标签:
2条回答
  • 2021-01-13 00:21

    If you are running it on .NET 4.0, this might be the case

    https://connect.microsoft.com/VisualStudio/feedback/details/691725/sqlconnection-handle-leak-net-4-0

    0 讨论(0)
  • 2021-01-13 00:30

    you will find that the majority of the object cache is composed of framework objects such as those created so you can access the config files and resources with out having to manually parse the files yourself

    IIRC the default object cache is about 4000 objects.

    you have to remember that just because your only creating and disposing of a single object doesn't mean that's all the frame work is doing

    0 讨论(0)
提交回复
热议问题