Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MSXML Document Load does not return

0 views
Skip to first unread message

Adam Becker

unread,
Nov 3, 2009, 1:26:58 PM11/3/09
to
My application runs as a service using MSXML3. Typically, it runs
without any problems, however I occasionally see the call below to
load hang and never return:

CComPtr< IXMLDOMDocument> pTempDoc;
hr = pTempDoc.CoCreateInstance(__uuidof(FreeThreadedDOMDocument));

hr = pTempDoc->load(varFilePath, &bLoadResult);

The file path is to a URL that is hosted on the local machine. If I
log on to the machine with the same user that the service is running
as I can access the URL just fine via IE. SSL is not in the picture.
Nothing appears to have any locks on the file. Here is a stack trace
of the thread that is hung by this call (from a mini dump:)

00 061edca4 7739bbd1 ntdll!KiFastSystemCallRet
01 061edd00 7739ce36 user32!MsgWaitForMultipleObjectsEx+0xd7
02 061edd1c 6f376d93 user32!MsgWaitForMultipleObjects+0x1f
03 061edd6c 6f376df5 urlmon!FindMimeFromData+0x561
04 061edda8 6f35aeeb urlmon!FindMimeFromData+0x5c3
05 061ede2c 6f35ab49 urlmon!CreateURLMonikerEx2+0xc53
06 061ede70 6f35af82 urlmon!CreateURLMonikerEx2+0x8b1
07 061ede94 72e73718 urlmon!CreateURLMonikerEx2+0xcea
08 061edee0 72e72bdd msxml3!DllCanUnloadNow+0x9c7d
09 061edefc 72e72b26 msxml3!DllCanUnloadNow+0x9142
0a 061edf30 72e729d9 msxml3!DllCanUnloadNow+0x908b
0b 061edf5c 72e6295c msxml3!DllCanUnloadNow+0x8f3e
0c 061edfe0 72e73259 msxml3!DllGetClassObject+0xa2f3
0d 061edffc 72e73141 msxml3!DllCanUnloadNow+0x97be
0e 061ee07c 01a30740 msxml3!DllCanUnloadNow+0x96a6

I have found that if I delete the local user the service runs as and
re-create it, then the problem will go away, however, I’m not too fond
of this as a solution. Does anyone know what could cause this or what
I could do to better debug this issue? I should probably add that
this is not something that I can reproduce at will but I do have a
memory dump of a process that is in this state.

Thanks for any help.

Martin Honnen

unread,
Nov 3, 2009, 2:12:36 PM11/3/09
to
Adam Becker wrote:
> My application runs as a service using MSXML3. Typically, it runs
> without any problems, however I occasionally see the call below to
> load hang and never return:

There is an MSDN forum for MSXML
http://social.msdn.microsoft.com/Forums/en-US/msxml/threads/
where you are more likely to get a qualified answer than here as some
Microsoft employees participate in the forum but not in this group.


--

Martin Honnen --- MVP XML
http://msmvps.com/blogs/martin_honnen/

Adam Becker

unread,
Nov 3, 2009, 3:34:30 PM11/3/09
to
0 new messages