I have a taskfactory application that generates new tasks where a task is running a project exe file that involves a lot of classes. Part of the task process involves declaring a dataset and adding a single datatable to the dataset which is then populated with content from results of a sql query. This datatable is then used in the next class and involves iterating through the table and deleting the rows it has already used. When initiating a new task I assume that it will declare its own datatable and dataset but not sure if this will work. Any comments or suggestions.


...declaring a new datatable in method that each task runs

Code:
 dsCountry = New Dataset
 dsTable = New DataTable
 dsCountry.Tables.add(dsTable)