Re: Performance issue
- From: Peter Karlström <HayRoller@xxxxxxxxxxxxxxxx>
- Date: Wed, 28 May 2008 00:30:02 -0700
Hi Jialiang Ge
Thanks for your reply.
The Malldoc template is located localy and is only 52kB small.
The loading of the template takes less than a second and is executed just
before in the code I supplied earlier. Up till we timed the opening I also
considered network load, but thats not the issue.
The clients are 32-bit PCs running Windows XP SP2 with Office XP (2002) SP3.
In an overall comparement some clients creates documents on 5-7 seconds,
while others use almost 2 minutes with the exact same conditions. This part I
supplied in my first post is the one with the biggest timeloss.
We have also checked other loaded COM Addins, and if we unload them we get
an increase in performance but we do not reach under 30 seconds for creation
of a document.
I guess, as you also suggest, that we have to narrow the debugging down even
more to logg every line of code in this part of the process.
I will talk to the client and discuss the logging increase. Then I will get
back to you.
Regards
--
Peter Karlström
Midrange AB
Sweden
"Jialiang Ge [MSFT]" wrote:
Hello Peter,.
In my best guess, it is because Maildoc was having trouble to access its
attached template in the code:
wrdApp.Windows(Malldoc).Document.AttachedTemplate.AutoTextEntries("Standard1
").Insert Where:=rngHeaderFirstPage
Where is the template file located? Is it in a network share? Any chance
that the network connection of the five computers is causing the problem?
To verify this hypothesis, we can either use Procmon.exe to trace the
hanging period, or create a "Maildoc" from a local copy of the template and
see if the add-in can run smoothly based on this new "Maildoc".
If it does not help, would you tell me the Office & OS (64bit?) version of
the computers? It was mentioned that you used log to trace the operations.
Is it possible for you to detect the exact line of code that hangs in your
code snippet? You may consider splitting some long code lines into small
fragments, and log the operation time for each piece. For example:
Set doc = wrdApp.Windows("maildoc.doc").Document
Set tmp = doc.AttachedTemplatelog here
Set entry = tmp.AutoTextEntries("Standard1")log here
entry.Insert rngHeaderFirstPage Truelog here
log here
Regards,
Jialiang Ge (jialge@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
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.
- References:
- Performance issue
- From: Peter Karlström
- Re: Performance issue
- From: Peter Karlström
- Re: Performance issue
- From: Jialiang Ge [MSFT]
- Performance issue
- Prev by Date: Re: Performance issue
- Next by Date: RE: "Display reminders and tasks from this folder in the To-Do Bar" -
- Previous by thread: Re: Performance issue
- Next by thread: Re: Performance issue
- Index(es):
Relevant Pages
|
Loading