Tom's Hardware > Forum > Smartphones & PDAs > Windows Mobile > C Sharp Application Hangs on WIndows Mobile 2003 SE

C Sharp Application Hangs on WIndows Mobile 2003 SE

Forum Smartphones & PDAs : Windows Mobile - C Sharp Application Hangs on WIndows Mobile 2003 SE

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.pocketpc,microsoft.public.dotnet.csharp.general,microsoft.public.dotnet.framework.compactframework (More info?)

 

HI

I have a C# .NET app that hangs while loading on Windows Mobile 2003
SE. The device is a Dell Axim x50. The application runs fine on an
Axim x30 and every other Pocket PC I tried it on. My application main
form shows up with the my loading message "Please wait loading...".
While this message appears I call a function that loads 3 xml files
into datasets. This is where it hangs.

Any suggestions on how to make my application run better on this OS?

Any help would be greatly appricated.

Thanks

Rich

Sponsored Links
Register or log in to remove.

Archived from groups: microsoft.public.pocketpc,microsoft.public.dotnet.csharp.general,microsoft.public.dotnet.framework.compactframework (More info?)

 

Can you debug the application on the device? Do you get any error messages
when loading the datasets?


--
Mark Arteaga
..NET Compact Framework MVP
http://www.neotericsdc.com | http://blog.markarteaga.com


<richardsayre@gmail.com> wrote in message
news:1110398043.269929.87590@g14g2000cwa.googlegroups.com...
> HI
>
> I have a C# .NET app that hangs while loading on Windows Mobile 2003
> SE. The device is a Dell Axim x50. The application runs fine on an
> Axim x30 and every other Pocket PC I tried it on. My application main
> form shows up with the my loading message "Please wait loading...".
> While this message appears I call a function that loads 3 xml files
> into datasets. This is where it hangs.
>
> Any suggestions on how to make my application run better on this OS?
>
> Any help would be greatly appricated.
>
> Thanks
>
> Rich
>

Reply to Anonymous

Archived from groups: microsoft.public.pocketpc,microsoft.public.dotnet.csharp.general,microsoft.public.dotnet.framework.compactframework (More info?)

 

The line of code that halts the application is

dsFrom.ReadXml(@"\Program Files\MyApp\fromServer.xml" );

The strange thing is right before I try to load that file into the
dataset I execute that function for another file that loads fine.

ds.ReadXml(@"\Program Files\MyApp\toServer.xml" );

I get no errors or exceptions and I included System.SR. I am going to
do further debugging, if you have any more suggestions they would be
greatly appricated.

Thanks

Rich

Reply to Anonymous

Archived from groups: microsoft.public.pocketpc,microsoft.public.dotnet.csharp.general,microsoft.public.dotnet.framework.compactframework (More info?)

 

Have you tried to debug this code snippet? I suppose it throws exception
and you just suppress it or smth. Also show us error reproducible source
together with fromServer.xml file; othwerwise it would be hard to help you.

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com


richardsayre@gmail.com wrote:
> The line of code that halts the application is
>
> dsFrom.ReadXml(@"\Program Files\MyApp\fromServer.xml" );
>
> The strange thing is right before I try to load that file into the
> dataset I execute that function for another file that loads fine.
>
> ds.ReadXml(@"\Program Files\MyApp\toServer.xml" );
>
> I get no errors or exceptions and I included System.SR. I am going to
> do further debugging, if you have any more suggestions they would be
> greatly appricated.
>
> Thanks
>
> Rich
>

Reply to Anonymous

Archived from groups: microsoft.public.pocketpc,microsoft.public.dotnet.csharp.general,microsoft.public.dotnet.framework.compactframework (More info?)

 

I found the solution to my problem. Hopefully it will help someone
else who is having the same problem.

I think it's a bug in whatever does XML processing in 2003 SE. The XML
file that didnt load looked like this.

<?xml version="1.0" standalone="yes" ?>
<fromServer xmlns="http://tempuri.org/fromServer.xsd">
<data />
</fromServer>

The difference between the XML files that would load is child element
after the element with the xmlns atribute in it had an opening and
closing tag. SO i changed my XML to this:

<?xml version="1.0" standalone="yes" ?>
<fromServer xmlns="http://tempuri.org/fromServer.xsd">
<data></data>
</fromServer>

And it worked.

Pretty wierd bug, but atleast my application works again :)

Cheers

Rich

Reply to Anonymous
Tom's Hardware > Forum > Smartphones & PDAs > Windows Mobile > C Sharp Application Hangs on WIndows Mobile 2003 SE
Go to:

There are 1219 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them