J
JerryK
Hi,
I have a strange problem I am trying to understand. I have a piece of code
that looks like:
Dim SourceDS as dataset
Dim ResultDS as dataset
SourceDS = RetrieveData()
ResultDS = ProcessData( SourceDS)
....
When I run this code I occasionally get the wrong information in the
ResultDS, the results Dataset. However, if I add a copy of the dataset,
everything works. That is, the code below returns the correct results.
Dim SourceDS as dataset
Dim ResultDS as dataset
Dim TempDS as dataset
SourceDS = RetrieveData()
TempDS = SourceDS.Copy
ResultDS = ProcessData( TempDS)
....
This is very strange and struggling to understand what is going on. BTW,
ProcessData() walks through the data in the dataset and may recursively call
itself passing a subset of the original data.
Any thoughts on what is going on?
Thanks,
Jerry
I have a strange problem I am trying to understand. I have a piece of code
that looks like:
Dim SourceDS as dataset
Dim ResultDS as dataset
SourceDS = RetrieveData()
ResultDS = ProcessData( SourceDS)
....
When I run this code I occasionally get the wrong information in the
ResultDS, the results Dataset. However, if I add a copy of the dataset,
everything works. That is, the code below returns the correct results.
Dim SourceDS as dataset
Dim ResultDS as dataset
Dim TempDS as dataset
SourceDS = RetrieveData()
TempDS = SourceDS.Copy
ResultDS = ProcessData( TempDS)
....
This is very strange and struggling to understand what is going on. BTW,
ProcessData() walks through the data in the dataset and may recursively call
itself passing a subset of the original data.
Any thoughts on what is going on?
Thanks,
Jerry