What are the most common (and often overlooked) causes of memory leaks in managed (.net) applications?

后端 未结 11 989
闹比i
闹比i 2021-02-04 09:32

Please can anyone recommend a quick checklist / best practice guide to help us avoid simple (but subtle) mistakes that cause could cause memory leaks in .net apps

I find

11条回答
  •  名媛妹妹
    2021-02-04 10:01

    One of the many good things you can do to manage memory effectively.

    Call dispose on any object that implements IDisposable wherever possible especially on the DataSet or DataTable object.

    Better still use the using{} constructs on these objects.

提交回复
热议问题