6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

DataSet(DataTable)でメモリリーク

Posted at
DataTable dt = new DataTable();
DataRow dr = dt.NewRow();
dr = null;

NewRowでの作成と放棄を繰り返すとメモリリークとなります。

「メモリリークとは言いません」とか、「仕様です」とかはなしで。

DataTableを汎用のお手軽なデータ構造として使用しようとすると後々困った事に…
スレッドセーフにするにもDataTable単位でロックが必要とか。

(古い情報のサルベージ中)

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?