How to find native memory leak in .net application?
I have application written in C#. Memory usage shows that开发者_StackOverflow中文版 there is a memory leak. However, dotTrace shows that managed memory is OK, so I think that leak occurs in native memory (yes, there are some native calls in my application). How can I find the problem?
Thanks!
I would take a memory dump of the running application, and then use Windbg or Visual Studio 2010 to investigate the issue.
Related resources:
- How to research unmanaged memory leaks in .NET?
- Windbg on Wikipedia
- Analysing dump files with Visual Studio 2010
精彩评论