c# : simulate memory leaks

后端 未结 7 872
囚心锁ツ
囚心锁ツ 2021-02-05 17:26

I would like to write the following code in c#. a) small console application that simulates memory leak. b) small console application that would invoke the above application and

7条回答
  •  余生分开走
    2021-02-05 18:09

    Just Create IDisposable objects and don't dispose them! Examples being Image Graphics or any kind of handle or code that branches out into unmanaged code to create/manage resources.

提交回复
热议问题