dataset CE

  • Thread starter Thread starter joris.geysens
  • Start date Start date
J

joris.geysens

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
 
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,
 
Thanks for your reply.
Sorry, but I can't post the code as it is, it would be too complicated
and I just can't do it from my company. It is not possible that the
dataset is getting mixed at server side on the DoSomething call ,
because it's a call that only takes 5 string values :

DoSomething( string val1, string val2,.....);

First thing we do is logging these parameters, so I doubt it ( but on
the other hand , your theory should be possible). I'm investigating
this a bit further on the server side.

Joris
 
Back
Top