Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / May 2006

Tip: Looking for answers? Try searching our database.

COM event handled in c# app causing Winword grief

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brendan Green - 01 May 2006 01:23 GMT
We have an application we monitor via an older activex control, from which
we receive event notifications - form opened, user logged in/out, about to
exit, that sort of thing. We poll to detect the application startup using a
'connect' method on the (our application) Com object, which throws an
exception when connect fails - then we loop back round (more on this later)
with a small nap between polls.

We have deployed to machines with an SOE consisting of win2k, + word 2k, and
on these machines we find that, with word running (and our monitoring app
running) and when we start / stop / start our monitored app (and so we are
installing, uninstalling, installing event handlers for the events mentioned
above, as well as handling said events) we find that ms word consumes 100%
cpu.  We are *not* doing any specific word or other office interop calls -
we are talking only to our own com component when we observe this behaviour.

We initially responded by removing our connect polling - we now wait for the
process (our monitored application) to appear in the process list, then
connect, so we are not actively polling through our com object.

That *seemed* to solve the problem for a while. however it now appears in a
new guise - with the series of actions described above( word running, our
app start/stop/start) resulting in our app being non-responsive accross the
com interface - we never return from some com calls.

We have found that an upgrade from word 2000 to word XP solves the problem,
however our clients are reluctant to upgrade the large number of users.

I have not been able to locate a knowlege base article or similar that
describes this - does anyone else have any experience with similar issues?

Thanks in advance,
Brendan.
"Peter Huang" [MSFT] - 01 May 2006 03:45 GMT
Hi Brendan,

It seems to be complex issue, and I suggest you contact MSPSS directly.
http://support.microsoft.com

Since Word 2000 is an older product, the available resource is limited. I
also strange that your application will be related with Word but you thing
it should not. Have you tried to install the ActiveX control onto a machine
without winword, did that works.

Also I thing you may try to use the ActiveX control in a unmanaged code,
e.g. VB6 or something else, did the problem persist?
If no, I think you may try to write an unmanaged wrap for the ActiveX and
use that in your C# app.

Best regards,

Peter Huang

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.
Brendan Green - 01 May 2006 04:12 GMT
Hi Peter,

Thanks for the prompt response.

It is a strange problem.  We've done a fair amount of investigation, and
have narrowed it down to Word also being installed as helping cause the
issue.  So, on a machine that DOES NOT have Word installed, or had a later
version of Word installed, the problem goes away.

Our ActiveX control has been wrapped in a .NET class library, but we don't
think that this is causing the issue.

We do have an unmanaged wrapper lying around that we can try - thanks for
the suggestion.

Once quick question - is Word 2000 still supported by Microsoft (even if on
a pay-per-incident model)?  One avenue would be to have the client upgrade,
but that has its own politics!

If we can't get this sorted, then we will probably end up submitting
something to MSPSS.

Regards,
Brendan.

> Hi Brendan,
>
[quoted text clipped - 23 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
"Peter Huang" [MSFT] - 01 May 2006 05:51 GMT
Hi Brendan,

Here is some information for your reference.
Office 2000 ¨C Microsoft will continue to offer mainstream support for
Office 2000 through June 30, 2004. The Office 2000 extended support period
will last from July 1, 2004 through July 14, 2009. The latest Office 2000
service pack is required for hotfix support.

Office Family Product Support Lifecycle FAQ
http://support.microsoft.com/default.aspx?scid=fh;en-us;lifeOffice

Support Lifecycle Index
http://support.microsoft.com/gp/lifeselectindex

Best regards,

Peter Huang

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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.