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

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
 
W

Wei Lu [MSFT]

Hello Cheelio,

Could you please contact the CSS to request the hotfix in this KB article?

Availability of Windows Server 2003 Post-Service Pack 1 COM+ 1.5 Hotfix
Rollup Package 6
http://support.microsoft.com/?id=897667

It contains a new version of the Ole32.dll which may resolve this issue.

Please let me know if this still could not resolve your issue. Thanks!

Sincerely,

Wei Lu

Microsoft Online Community Support

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
C

Cheelio

Thank you.
I Requested the hotfix rollup package. I will let you know when it won't
resolve the problem.

Michiel.
 
W

Wei Lu [MSFT]

Hello Michiel,

Did the hotfix resolve your issue?

If you still have any question, plese feel free to let me know.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
C

Cheelio

Hi Wei Lu,

The hotfix indeed fastened up the process from 30+ seconds to 10 seconds.
But that's still way to long comparing to the 4 seconds that it took on NT4
(also office 2003).
Is this all caused by improved security that's put into windows 2003 and do
I have to live with it?
Or do you suggest other things to make further improvements?

Michiel
 
W

Wei Lu [MSFT]

Hello Michiel,

My understanding is that this may be the cause of the security improvement
in the 2003.

I will confirm this.

Currently, I do not have other workaround to suggest. Have you tried to use
the filemon to monitor the dll again?

Sincerely,

Wei Lu

Microsoft Online Community Support

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
W

Wei Lu [MSFT]

Hi Michiel,

Did you get the new filemon yet?

Sincerely,

Wei Lu

Microsoft Online Community Support

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
S

s.latuheru

Hi Wei Lu,

I will get you the Filemon results a.s.a.p.
To get this info, I have to build a new Softgrid OSD with Filemon
trick in it.
When I have the Filemon output, I'll send it over to you.

Sacha Latuheru
Log-In Consultants
 
S

s.latuheru

Hi Wei Lu,

I've got the Filemon results. It looks like the OLE32.DLL and
OLEAUT32.DLL issue is solved. However, there are still a lot of
query's to the ADVAPI32.DLL.
Please send me a PM, so I can send you the full LOG file of 2 MB.

Kind Regards,

Sacha Latuheru
Log-In Consultants

332 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\ole32.dll SUCCESS Attributes: A
333 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\ole32.dll SUCCESS Attributes: A
334 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\GDI32.dll SUCCESS Attributes: A
335 3:28:31 PM fast.exe:2392 OPEN M:\WINDOWS\system32\GDI32.dll
SUCCESS Options: Open Access: Read
336 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\GDI32.dll SUCCESS Length: 282624
337 3:28:31 PM fast.exe:2392 CLOSE M:\WINDOWS\system32\GDI32.dll
SUCCESS
338 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\GDI32.dll SUCCESS Attributes: A
339 3:28:31 PM fast.exe:2392 OPEN M:\WINDOWS\system32\GDI32.dll
SUCCESS Options: Open Access: Read
340 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\GDI32.dll SUCCESS Length: 282624
341 3:28:31 PM fast.exe:2392 CLOSE M:\WINDOWS\system32\GDI32.dll
SUCCESS
342 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\ADVAPI32.dll SUCCESS Attributes: A
343 3:28:31 PM fast.exe:2392 OPEN M:\WINDOWS\system32\ADVAPI32.dll
SUCCESS Options: Open Access: Read
344 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\ADVAPI32.dll SUCCESS Length: 618496
345 3:28:31 PM fast.exe:2392 CLOSE M:\WINDOWS\system32\ADVAPI32.dll
SUCCESS
346 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\ADVAPI32.dll SUCCESS Attributes: A
347 3:28:31 PM fast.exe:2392 OPEN M:\WINDOWS\system32\ADVAPI32.dll
SUCCESS Options: Open Access: Read
348 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\ADVAPI32.dll SUCCESS Length: 618496
349 3:28:31 PM fast.exe:2392 CLOSE M:\WINDOWS\system32\ADVAPI32.dll
SUCCESS
350 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\ADVAPI32.dll SUCCESS Attributes: A
351 3:28:31 PM fast.exe:2392 OPEN M:\WINDOWS\system32\ADVAPI32.dll
SUCCESS Options: Open Access: Read
352 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\ADVAPI32.dll SUCCESS Length: 618496
353 3:28:31 PM fast.exe:2392 CLOSE M:\WINDOWS\system32\ADVAPI32.dll
SUCCESS
354 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\ADVAPI32.dll SUCCESS Attributes: A
355 3:28:31 PM fast.exe:2392 OPEN M:\WINDOWS\system32\ADVAPI32.dll
SUCCESS Options: Open Access: Read
356 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\ADVAPI32.dll SUCCESS Length: 618496
357 3:28:31 PM fast.exe:2392 CLOSE M:\WINDOWS\system32\ADVAPI32.dll
SUCCESS
358 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\ADVAPI32.dll SUCCESS Attributes: A
359 3:28:31 PM fast.exe:2392 OPEN M:\WINDOWS\system32\ADVAPI32.dll
SUCCESS Options: Open Access: Read
360 3:28:31 PM fast.exe:2392 QUERY INFORMATION M:\WINDOWS
\system32\ADVAPI32.dll SUCCESS Length: 618496
 
W

Wei Lu [MSFT]

Hello Sacha,

Please remove the ONLINE in my display name to get my real email address.

Sincerely,

Wei Lu

Microsoft Online Community Support

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
S

Sacha

Wei Lu,

I've just e-mailed the filemon LOG file.
Some extra info. I allready installed SP2.

Kind regards,

Sacha Latuheru
Log-In Consultants
 
W

Wei Lu [MSFT]

Hello Sacha,

Thanks for the information. I got the LOG and am performing research.

I appreciate your patience.

Sincerely,

Wei Lu

Microsoft Online Community Support

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
S

Sacha

Hi Wei Lu & Michiel.

I added some extra code to the OSD and this solved the delay issue.

<POLICIES>
<LOCAL_INTERACTION_ALLOWED>TRUE</LOCAL_INTERACTION_ALLOWED>
</POLICIES>

Wei Lu, can you confirm this?

Sacha Latuheru
Log-In Consultants
 
W

Wei Lu [MSFT]

Hello Sacha,

Thanks for the update that you resolved this issue.

I will confirm this with internal team.

Thank you for your providing.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top