Loading Word documents in OLE containter very slow since Windows Server 2003 SP1



Hi all,

We have a delphi windows application that uses an OLE-container on a form
that is filled with a Word 2003 instance.
This works well on almost any OS.

Now, the poblem:
On Windows Server 2003 since SP1, the process of loading the OLE container
and filling it with the right document is very slow. (more than 30 seconds)
We need to run it in a Windows Server 2003 environment because of a
Citrix/Softricity setup.
We tracked back the problem to 3 dll's that cause this delay:

- ADVAPI32.DLL (version 5.2.3790.1830)
- OLE32.DLL (version 5.2.3790.1830)
- OLEAUT32.DLL (version 5.2.3790.1830)

When using the pre SP1 version of these DLL's, (version 5.2.3790) there is
no significant delay.
We came to this conclusion by monitoring it with filemon.

1:24:22 PM WINWORD.EXE:9676 QUERY INFORMATION
M:\WINDOWS\system32\OLEAUT32.dll SUCCESS Attributes: A
1:24:22 PM WINWORD.EXE:9676 OPEN M:\WINDOWS\system32\OLEAUT32.dll SUCCESS
Options: Open Access: Read
1:24:22 PM WINWORD.EXE:9676 QUERY INFORMATION
M:\WINDOWS\system32\OLEAUT32.dll SUCCESS Length: 556032
1:24:22 PM WINWORD.EXE:9676 CLOSE M:\WINDOWS\system32\OLEAUT32.dll SUCCESS

1:24:22 PM WINWORD.EXE:9676 QUERY INFORMATION M:\WINDOWS\system32\ole32.dll
SUCCESS Attributes: A
1:24:22 PM WINWORD.EXE:9676 OPEN M:\WINDOWS\system32\ole32.dll SUCCESS
Options: Open Access: Read
1:24:22 PM WINWORD.EXE:9676 QUERY INFORMATION M:\WINDOWS\system32\ole32.dll
SUCCESS Length: 1245184
1:24:22 PM WINWORD.EXE:9676 CLOSE M:\WINDOWS\system32\ole32.dll SUCCESS

1:24:22 PM WINWORD.EXE:9676 QUERY INFORMATION
M:\WINDOWS\system32\ADVAPI32.dll SUCCESS Attributes: A
1:24:22 PM WINWORD.EXE:9676 OPEN M:\WINDOWS\system32\ADVAPI32.dll SUCCESS
Options: Open Access: Read
1:24:22 PM WINWORD.EXE:9676 QUERY INFORMATION
M:\WINDOWS\system32\ADVAPI32.dll SUCCESS Length: 620032
1:24:22 PM WINWORD.EXE:9676 CLOSE M:\WINDOWS\system32\ADVAPI32.dll SUCCESS

We see the above messages comming up in filemon for around 40 seconds.

from delphi we fill the OLE container with:

OLEHD: TOleContainer;

OLEHD.CreateObjectFromFile(strPath, False);
OLEHD.DoVerb(ovShow);

The last two lines are causing the delay.

Does someone have any ideas what is changed in version 5.2.3790.1830 of
these DLL's that causes the delay?
(And how to solve it?)

Thanks in advance,

Michiel Verheul
The Netherlands


.



Relevant Pages

  • Re: SUS und IIS
    ... Length: 19150 ... 13670 0.00000782 dllhost.exe:3344 QUERY INFORMATION ... 13673 0.00001648 dllhost.exe:3344 QUERY SECURITY ...
    (microsoft.public.de.inetserver.iis)
  • Re: internal web based exchange
    ... Exchange System Manager. ... | Files\Content.IE5\index.dat SUCCESS ... | successfully opens owalogon.asp, then successfully opens 404. ...
    (microsoft.public.windows.server.sbs)
  • Please Help - Desperate 1394 Performance Problems
    ... have wasted hours already with absolutely no success. ... Microsoft Windows XP Professional Service Pack 2 ... cable and captured video without any frame dropping or other problems. ... Pinnacle Studio 9.4 and Pinnacle AM ...
    (rec.video.desktop)
  • Re: internal web based exchange
    ... I'm not getting a logon prompt. ... Files\Content.IE5\index.dat SUCCESS ... successfully opens owalogon.asp, then successfully opens 404. ...
    (microsoft.public.windows.server.sbs)
  • Re: Error 0X800C0005
    ... still wasn't able to access https sites and still got ... Program Files and Windows directories. ... Reboot, try connecting with Mozilla, success. ... Apparently part of Norton Internet Security includes ...
    (microsoft.public.windowsupdate)