How to research unmanaged memory leaks in .NET?

后端 未结 4 530
别那么骄傲
别那么骄傲 2021-02-02 09:39

I have a WCF service running over MSMQ. Memory gradually increases over time, indicating that there is some sort of memory leak. I ran the service locally and monitored some c

4条回答
  •  天涯浪人
    2021-02-02 09:51

    Make sure that you close the service client after using it. something like

    try {
    ... do work ...
    Close();
    } ... exception handling ... {
    Abort();
    }
    

提交回复
热议问题