Re: problem with XML DOM 'load' command

From: Marian Javorcik (MarianJavorcik_at_discussions.microsoft.com)
Date: 10/07/04


Date: Thu, 7 Oct 2004 03:51:01 -0700

Hello

I have this problem too. When I try to load a xml file, the load() function
of DOMDocument object hangs.
1. I have EVC++ 4.0 SP4
3.I try this on 2 platforms CEPC and Emulator.

"John Spaith [MS]" wrote:

> OK - more questions. Another person on the group is having some problems
> with invalid XML and I'm getting suspicious that something in a QFE
> someplace else in the OS
> has busted MSXML and its exception processing.
>
> (1) Have you installed all the QFE's for CE 4.2?
> (2) Have you ever got this to work on CE 4.2 before installing QFE's?
> (Don't uninstall QFE's just to see this, because I'm only speculating right
> now.)
> (3) Which platform are you running this on? CEPC? Emulator? ...?
>
> Thanks
>
> --
> John Spaith
> Software Design Engineer, Windows CE
> Microsoft Corporation
>
> Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Let
> us know!
> https://www.windowsembeddedeval.com/community/newsgroups
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
> You assume all risk for your use. © 2003 Microsoft Corporation. All rights
> reserved.
>
> "Mike Slot" <mslotREMOVETHIS@maesc.com> wrote in message
> news:e9hYW$QaEHA.1644@tk2msftngp13.phx.gbl...
> > Hi John,
> >
> > Thanks again for your help. I made sure that I have exception handling in
> > the platform.
> >
> > Unfortunately the registry settings did not change the behaviour. I'll use
> > an addition file check before attempting to load an XML file.
> >
> > btw: I did try LoadXML(BSTR..) as well. This one always generates a gpf
> > regardless if the file existing or not.
> >
> > Thanks
> > Mike
> >
> > I tried the flag
> > "John Spaith [MS]" <jspaith@ONLINE.microsoft.com> wrote in message
> > news:eZEZR1PaEHA.4032@TK2MSFTNGP11.phx.gbl...
> > > These lines of debug out:
> > > > Exception ffffffff Thread=83c25df8 Proc=03bdd8a2 'READServer.exe'
> > > > AKY=00000401 PC=03fb00ef ESP=1611f088 EA=800c0006
> > > > TLSKERN_NOFAULT set... bypassing kernel debugger.
> > > > First-chance exception in READServer.exe: 0xE0000001: (no name).
> > >
> > > Are generated by MSXML itself. It calls RaiseException(0xE0000001) to
> > > indicate to itself that it hit an error, but it also catches this in a
> try
> > > block. the TLSKERN_NOFAULT is a setting that MSXML sets in order to not
> > > have you be broken into the debugger everytime that the exception
> happens.
> > > So this exception is on your main thread where you're doing the load.
> > >
> > > I'm wondering if somehow exceptions may not be working properly on your
> > > platform? That seems so strange though. When you load up XML that has
> > > syntax errors in it, do you also see this problem (this will also cause
> > > MSXML to call RaiseException()). Along this path, you can also try
> > setting
> > > this registry value to see if it helps - this turns of TLSKERN_NOFAULT
> > > stuff. If your app is hooked up to a debugger you will get exceptions
> > > indicated to you inside the debugger, but since they're harmless you can
> > > ignore them.
> > >
> > > [HKLM\Software\Microsoft\MSXML]
> > > BreakOnHandledExceptions=DWORD:1
> > >
> > > No need to rebuild your platform to make this take affect. MSXML reads
> it
> > > on DllMain() at load time.
> > >
> > > Beyond this, however, I really don't know what's causing this. Hope
> this
> > > proves helpful.
> > >
> > > --
> > > John Spaith
> > > Software Design Engineer, Windows CE
> > > Microsoft Corporation
> > >
> > > Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
> > Let
> > > us know!
> > > https://www.windowsembeddedeval.com/community/newsgroups
> > >
> > > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> > > You assume all risk for your use. © 2003 Microsoft Corporation. All
> rights
> > > reserved.
> > >
> > > "Mike Slot" <mslotREMOVETHIS@maesc.com> wrote in message
> > > news:%23Oy$$%23CaEHA.4032@TK2MSFTNGP11.phx.gbl...
> > > > Hi John,
> > > >
> > > > Thanks for your reply. I am using a custom CE 4.2 platform with XML +
> > COM
> > > > included.
> > > >
> > > > I tried your code, it is giving me the same problem, this is the
> output
> > I
> > > > get when I try to step over the load function and the file does not
> > exist.
> > > >
> > > > Exception ffffffff Thread=83c25df8 Proc=03bdd8a2 'READServer.exe'
> > > > AKY=00000401 PC=03fb00ef ESP=1611f088 EA=800c0006
> > > > TLSKERN_NOFAULT set... bypassing kernel debugger.
> > > > First-chance exception in READServer.exe: 0xE0000001: (no name).
> > > >
> > > > I am unable to find back which thread is causing the problem (process
> > > viewer
> > > > is unable to refresh data as long as the application is still
> running).
> > My
> > > > application has only the main thread running at the time the XML is
> > > parsed.
> > > >
> > > > I already implemented a seperate check for the existence of the .xml
> > file
> > > > before attempting to load it.
> > > >
> > > > Thanks for your help,
> > > > Mike
> > > >
> > >
> > >
> >
> >
>
>
>
>


Loading