473,401 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

dataset CE

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

Nov 17 '05 #1
2 1301
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

<jo***********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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

Nov 17 '05 #2
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

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bill C. | last post by:
Hi, I've got a simple console app that just reads an XML file into a DataSet then prints out a description of each table in the DataSet, including column names and row values for each column. ...
3
by: Jeronimo Bertran | last post by:
Hi, I have an xml file that encapsulates a dataset definition within a set of tags (<dataset>)... here is an example <?xml version="1.0" encoding="utf-16"?> <dataset> <MyTable>...
5
by: Mike | last post by:
I need to expand the DataSet class by inheriting from it and adding functions that work on the data in the tables. However, since I can't upcast how can I get my base DataSet object assigned an...
3
by: JJ | last post by:
Hi, I need to pass a dataset to another win form along with a SqldataAdapter. I don't want to recreate the SqlDataAdapter again either. So to pass to another Win form in my windows form app, do...
5
by: Jason | last post by:
I am having problems understanding how to access a datasource only once, fill a single dataset, and then reference that dataset multiple times through different user controls(ascx) found on the...
2
by: John Holmes | last post by:
I have a web interface where the user types in ID's one at a time. After an ID is typed in, a button is clicked and the button click event has code that does a query and returns a data reader and...
15
by: JIM.H. | last post by:
Hello, Can I send a dataset as a parameter into stored procedure and import data to a table in the stored procedure? Thanks, Jim.
16
by: Geoff Jones | last post by:
Hi Can anybody help me with the following, hopefully simple, question? I have a table which I've connected to a dataset. I wish to add a new column to the beginning of the table and to fill...
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
1
by: matt | last post by:
hello, i have a web app that allows users to query our oracle db and produce a dataset of report data. they then have the option to serialize this data and store it in the database. later, then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.