C
Cheelio
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
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