Get Back RowError with CF 1.0?

S

S. Berwanger

Hallo all,

I am using a webservice with datasets for exchanging data with a database.
The application is calling the webservice with a dataset and get back a
dataset.
When there is a problem with updating the database I want use the RowError
for signalling the problem and the reason. This works without trouble with a
normal framework application, but in a WinCE 4.2 application (VB.NET, CF 1.0
SP3) it seems that the WinCE program hangs when the giving back dataset
signals errors (without any notification).
Is there a limitation for using datasets and webservices with CF 1.0? Gives
it a solution for the problem?

Thanks in advance and best regards
Siegfried
 
I

Ilya Tumanov [MS]

In most cases if NETCF application hangs, that's because UI is accessed from
none-UI thread.

For example, say you have a data grid bound to dataset and you're
updating/populating this dataset in asynchronous WS call.

That would be UI update (grid) from none-UI thread (WS worker thread) and
your application will hang. It would hand on a desktop as well, but not
always, just from time to time.

Make sure you're using Control.Invoke to update UI from none-UI threads. You
can use search link below to find a sample as its very common issue.


Best regards,


Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
S

S.Berwanger

Hallo Ilya,

thank you for your information.
But I have only the problem, when I set RowError in the webservice and get
this dataset back to the CF application.

I have made a simple testprogram which calls a webservice function in the
click event of a button.
This CF program have only one thread. The ws is running on a PC. The called
function generates a simple dataset and gets this back to the CF
application. If I do not set the RowError of anly row the program works
without a problem. But if I set RowError the CF application hangs when the
ws function is finished. It seems that the CF had a problem with the error
information.

Thanks in advance and best regards
Siegfried
 
I

Ilya Tumanov [MS]

Please post some code and identify the last line of it you can execute.
Also, it this WS public?

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
I

Ilya Tumanov [MS]

Thanks for reporting this issue. I was able to reproduce it and filed a bug
for NETCF V1 SP4.

NETCF V2 is not affected by this issue and works as expected.




A workaround might be done by sending error data in an extra column.



Best regards,


Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
S

S. Berwanger

Hallo Ilya,

do you know when SP4 will be available or what would be better: when will CF
V2.0 for WinCe 4.2 devices be available?
I have read that SP1 should support WinCE devices.

Thanks in advance and best regards
Siegfried
 
I

Ilya Tumanov [MS]

With V2 out, V1 SP4 is not at all likely. Yes, V2 will be available for CE
4.2 devices (except SH3) in SP1.

Time frame is undetermined, but considering our SP releases in V1 it should
be available within next few months.



By the way, are you building OS image with PB or using one from OEM?


Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
S

S. Berwanger

Hallo Ilya,

thank you for your information.
Actually I am developing an application for a Teklogix device (7535). The OS
is from this company. I think the company will use PB. If there are some
Hotfixes for PB it should be possible to send these to Teklogix, because I
have contact with the support.
For data exchanging I use a webservice and datasets.

Bye the way I have two smaller problems. Perhaps you know something about
this:
1. Can I show german system messages (i.e. 'ja', 'nein' in a messagebox) on
an englisch OS. And when yes, how?
2. It seems to me, that when I close an earlier used database connection in
the webservice this connection will not be free for later use. I have
restricted the MAX POOL SIZE and when I have made this count of calls I get
an error (timeout or all connections in use).

Thanks in advance and best regards
Siegfried
 
I

Ilya Tumanov [MS]

Please e-mail me you deployment details and I'll pass it on to see if we can
help you out. I'd need:



- Number of devices deployed.

- Device CPU.

- OS image CPU type (for example, on PXA 255 image can be ARMV4, ARMV4I or
ARMV4T.

- Time frame for your project.



Please remove "online" from my e-mail



As to your questions, #1 is possible, but you have to use custom dialog
instead of system message box.

Or, better yet, you can order localized images from the OEM.



I'm not sure about second one as this stuff is quite different on devices
and I've little experience with desktop's SQL Client.


Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top