PC Review


Reply
 
 
joris.geysens@gmail.com
Guest
Posts: n/a
 
      23rd Sep 2005
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

 
Reply With Quote
 
 
 
 
Ignacio Machin \( .NET/ C# MVP \)
Guest
Posts: n/a
 
      23rd Sep 2005
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
>



 
Reply With Quote
 
joris.geysens@gmail.com
Guest
Posts: n/a
 
      26th Sep 2005
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to cast object of type 'System.Data.DataSet' to Typed DataSet Optimus Microsoft VB .NET 1 31st Jan 2006 06:26 AM
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N Microsoft ADO .NET 7 9th Dec 2003 02:50 PM
copying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N Microsoft ADO .NET 2 31st Oct 2003 01:05 PM
copying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N Microsoft ASP .NET 2 31st Oct 2003 01:05 PM
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N Microsoft ASP .NET 2 31st Oct 2003 02:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:56 AM.