I am reading the file names and sizes from a directory and putting them into a Client Dataset.
Then I am comparing the sizes of each of them to see when they are finished building in the folder (Timer).
Once the file size remains the same (for 3 iterations) the file is then moved to a destination directory and a txt file is generated stating where the file was put.
After the file is moved out of the source directory, I delete it out of the Client Dataset.
I see there is a method called ApplyUpdate(error) associated with the Client Dataset.
Do I need to implement this ApplyUpdate(error) after I delete my filename from the Client Dataset?
Is this how to clean up the Client Dataset so that the memory doesn’t get out of control?
I only started working with Clientadatasets recently so I'm no expert. A clientdataset exists only in memory. ApplyUpdates will make changes in the memory data and in the Delta property which is a record of all changes made to the database. Moving through the database using First, Last, Next, etc will also post the changes made in individual records as you leave them, but will not make an entry in the "Delta" property unless the LogChanges parameter is true.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.