G
Guest
It is my understanding that the DataTable and DataSet objects are
"disonnected" (from the database) classes and support IMDB (In Memory
Database).
The IDisposable interface implemented in DataTable and DataSet is inherited
from the MarshalByValue interface which is there to support visual drag&drop
capabilities in Visual Studio.
We ran same test and after creating many big DataTable objects and
reclaiming the memory with GC.Collect() the DataTables are "disposed" and the
memory reclaimed and returned to the OS *REGARDLESS* of if we call
DataTable.Dispose or NOT.
Microsoft,
Do we need to call the Dispose methods for DataTable and DataSet objects and
if "Yes" - why?
Thank you in advance
Chavdar Angelov
"disonnected" (from the database) classes and support IMDB (In Memory
Database).
The IDisposable interface implemented in DataTable and DataSet is inherited
from the MarshalByValue interface which is there to support visual drag&drop
capabilities in Visual Studio.
We ran same test and after creating many big DataTable objects and
reclaiming the memory with GC.Collect() the DataTables are "disposed" and the
memory reclaimed and returned to the OS *REGARDLESS* of if we call
DataTable.Dispose or NOT.
Microsoft,
Do we need to call the Dispose methods for DataTable and DataSet objects and
if "Yes" - why?
Thank you in advance
Chavdar Angelov