Hi,
Your problem should be in the web service, not in the client, if the code
provided is executed in each thread you will have one local dataset per
thread, no conflict here.
but when you execute dosomething you are sending all the different dataset
to the method, it seems that somewhere in the webservice the dataset gets
mixed, without seen the code for DoSomething we can only especulate where is
the thing, are you using any variable outside the ones declared in the
DoSomething method?
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> We have a Windows CE client with the .NET compact framework on, and we
> start 10 workerthreads on this client.(Everything is C#) They all make
> webcalls to our ASP.NET webservice,and they all have a local pointer to
> the webservice.
>
> we do something like this :
>
> DataSet ds = new DataSet();
> ds = myService.GetInfo();
> myServive.DoSomething(ds.something);
>
> The problem is, it seems that sometimes one thread is using the data
> from another thread to make the second call (
> myServive.DoSomething...). We can see this because we log everything
> on the webserver side (and we also log the different session id's).
> The GetInfo call returns everyting OK , but the next call is with other
> data than returned by the GetInfo() call. Has anyone seen this before?
>
>
> Thanks,
> Joris
>
|