I fill a datatable with 100.000 rows (the memory increase of 100Mb +/-)…. then I clear and dispose the databable and I call GC.Collect()
If I do this in a desktop program the memory is released, but in wisej GC.Collect don’t it has not result.
I think it is a problem of IIS, does anyone know how to free memory?
my customers can fill memory very quick
Check out this other similar post: https://wisej.com/support/question/datagridview-memory-problem
As long as you’re properly disposing the references to the data, the garbage collector will free up the space. The important thing is to make sure you clear ALL references to the data, otherwise it won’t get freed up.
BTW, Wisej 2.2 (https://www.wisej.com/roadmap) will significantly reduce the amount of memory used by DataGridView’s (100mb down to roughly 3mb or so), so that might help you out as well!
Please login first to submit.