WPF Memory Usage

前端 未结 5 731
礼貌的吻别
礼貌的吻别 2021-02-08 20:56

Application:

  • WPF Application consisting of a textbox on top and a listbox below
  • Users type a string in the TextBox to find employees, and search results
5条回答
  •  孤独总比滥情好
    2021-02-08 21:50

    At the risk of being glib, you have a memory leak. Why not try a tool like ANTS* to track it down. They have a free trial, I've never used it but it has a good reputation.

    *Other profiling tools are available.

    If you don't want to get to grips with another tool, you can try something like incrementing a static member every time a class is created and decrementing it every time an instance is disposed. This will help you track down instances that are not be destroyed properly.

提交回复
热议问题