ecucurella
Programmer
Hi,
I have found a curious problem working with asyncronous call of methods !!
I will try to explain you:
- I have a class(Grib) that implements a function(GetNearData) that read some information(temperature data) in some positions in a file(from Latitude/Longitude).
- How I have to do too many read from so many files I have done 20 objects at the same time doing work and calling it trough the IAsyncResult interface
- The call to this method return by ref the data required
- The surprise was that if two objects use the same method to retrieve diferent data of the same file at the same time !! >> data returned was the same !!
There is any way to protect this error to be produced?
Thanks in advance,
cucu