Free up memory used by dataview
Hi All
I am using VB.net and I have several csv files that I need to sort and manipulate in simple ways (add & sum columns, etc.). I am currently using a dataview to load these files into the memory and then perform some simple operations on the data before writing it out as a file.
I have multiple files (and these are quite big - 100mb or so each) and I'd like to clear up the contents of the dataview (or free up memory??) after I process each file. I couldn't seem to find any info on how to do this. I'm not really a programmer and any help in this regard will be greatly appreciated.
Thanks,
Chetan
FYI my code looks like this:
' create a data view to help sort and compute weights
Dim dvdistance AsNew DataView(inputDS.Tables("table1"))
dvdistance.Sort = "gridid, distance"
// do my manipulations here
// write out to file
---> I'd like to clear up the memory used by the dataview dvdistance at
---> this point!
Dim dvdistance AsNew DataView(inputDS.Tables("table2"))
dvdistance.Sort = "gridid, distance"
// manipulations for the second dataset here
// write out to file
Hi All
I am using VB.net and I have several csv files that I need to sort and manipulate in simple ways (add & sum columns, etc.). I am currently using a dataview to load these files into the memory and then perform some simple operations on the data before writing it out as a file.
I have multiple files (and these are quite big - 100mb or so each) and I'd like to clear up the contents of the dataview (or free up memory??) after I process each file. I couldn't seem to find any info on how to do this. I'm not really a programmer and any help in this regard will be greatly appreciated.
Thanks,
Chetan
FYI my code looks like this:
' create a data view to help sort and compute weights
Dim dvdistance AsNew DataView(inputDS.Tables("table1"))
dvdistance.Sort = "gridid, distance"
// do my manipulations here
// write out to file
---> I'd like to clear up the memory used by the dataview dvdistance at
---> this point!
Dim dvdistance AsNew DataView(inputDS.Tables("table2"))
dvdistance.Sort = "gridid, distance"
// manipulations for the second dataset here
// write out to file