Re: Access violation in MSXML.dll ???



As far as the threads spun up, this is either an URLMON or Wininet
background worker thread. They basically always stay loaded, so don't worry
about that. Similarly MSXML DLL will stay loaded for some time after
loading, you'd need to be calling CoFreeUnusedLibraries or else
CoUninitialize to actually get the DLL unloaded.

For the problem around crashing, you may want to lookup
http://blogs.msdn.com/cenet/archive/2005/07/27/msxml-hangs-on-bad-xml-with-embedded-visual-c-4-2.aspx
to see if that's helpful. It's not exactly the same problem you're seeing,
but there are known problems with the EVC debugger on CE4.2 based devices
(which PocketPC 2003 is) which end up causing MSXML to do bad things. There
are workaround suggested in the article.

If this doesn't solve the problem, you will probably have to workaround the
problem somehow since we're not able to update MSXML on older devices and
I've never heard of the issues you're hitting before. My suggestion,
admittedly a hack, is that you wrap the call to the Delete or whatever other
methods are giving you problems with a __try/__except to catch the error
yourself and avoid the app from getting shutdown.

Apologies for the problems you've hit here and hope this is helpful.

--
John Spaith
Senior Software Design Engineer
Windows CE Networking
Microsoft Corporation

http://blogs.msdn.com/cenet/.

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2007 Microsoft Corporation. All rights
reserved.

"Rahul P. Shukla" <RahulPShukla@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5B101F3E-2E46-4BBC-969D-78872156D22F@xxxxxxxxxxxxxxxx
Hi,
I am totally stuck with the below described problem related with msxml.dll
(in pocket PC 2003).
In my application (which is build for all Pocket PC2003/WM5 and
above/WinCE
devices). I am using xml file creation/writing.
Problem is with Pocket PC 2003 devices only (and might be same with WinCE
4.2 based device). Whenever I try to cerate an instance of DOM object as:

pWriteXMLDoc.CreateInstance(__uuidof(DOMDocument));

It loads msxml.dll in memory and then in the next line I call load() to
load
the xml document as:

pWriteXMLDoc->load(FBInput_INFO_PATH);

which creates a new thread (I don't know why ??)

Not this msxml.dll remains in memory though I come out from xml creation
writing module, and that newly created thread still alive. So the problem
is,
when I try to delete the xml file, it throws a access violation error, and
kills my application. I have tried a lot, but that msxml.dll and newly
created thread is alive in memory. Though I am calling

pWriteXMLDoc->Release();

but its not releasing anything (neither MSXML.dll nor killing the thread).
?
. I am badly stuck here. Same code is working in higher version of Pocket
PC
2003. I have read that Pocket PC 2003 uses MSXML version 2.0, 2.5 & 2.6,
which have an access violation issue.

Refer: http://support.microsoft.com/kb/274734

Is my problem related with the same issue in these MSXML versions?
What may be the solution of the above mentioned problem?
Please let me know, if you know something. I am in a great problem because
of this issue. Thanks in advance for any reply .



.



Relevant Pages

  • Windows CE 20MB file limit and SQL Server CE
    ... I have a Pocket PC application that currently uses an XML file as its ... I have discovered that this XML file cannot exceed 20MB due to a limit ... if I used SQL Server CE as the data source would that ... if I placed the data source file on a memory card ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How to close Pocket PC 2002 Internet Explorer with a mouseclick on a link
    ... > no point in loading programs from "disk" into memory. ... >>I have a pocket PC and one of the annoying things I've ... >>Microsoft MVP FrontPage ...
    (microsoft.public.frontpage.programming)
  • RE: Bug in MSXML / XML Parser .Net
    ... > I have a problem parsing XML file using XSLT stylesheet by using: ... > System.Xml.XPath.MethodOperand.SetXsltContext(XsltContext context) ... > When I use XMLSpy to parse the XML using MSXML 4 processor it works perfect. ...
    (microsoft.public.dotnet.xml)
  • Re: fault???
    ... >> i have a problem with pocketpc 2003 its seems it has a problem with memory ... Microsoft has specified that Pocket PC programs cannot get a Microsoft ... >What may help you is to close down duplicated notification events that can ... remove the underscores from my email address (and please indicate which newsgroup and message). ...
    (microsoft.public.pocketpc)
  • Re: Motorola MPx300
    ... Please see the Pocket PC Mag Expert Blog at ... is there any way to delete ROM? ... When I run Media player for example, I get an error 'not enough memory ...
    (microsoft.public.pocketpc)