C++ Runtime Error

B

- B@rney

Hi!

I've developed a C# COM Add-In using the Shared Add-In (Extensibility)
project.

I'm using class PictureAxHost as per
http://support.microsoft.com/default.aspx?scid=kb;en-us;824017 to get bitmaps
on my button, and class EnableTheimingInScope as per
http://support.microsoft.com/default.aspx?scid=kb;en-us;830033 to get XP
look'n feel.

Otherwise I'm using Word, Excel and PowerPoint Interop's.

On some machines, closing Word, causes an error like this:
<error>
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!

Program: C:\PROGRA~1\MICROS~2\OFFICE11\WINWORD.EXE

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
</error>

This is a Custom Developement project for a customer. I need to solve this
ASAP as they're about to put this Add-In in production for several hundred
users for their customers.
 
B

- B@rney

Got it...

But I don't know why?

I removed any reference to CustomizationContext, and it's back to normal.

This I added to make sure that any changes made by the add-in were stored in
the document, not in normal.dot. This was done as per reccommendation read on
msdn.microsoft.com...

Anyone know why?
 
P

Peter Huang [MSFT]

Hi Brney,

Based on my experience, in COM related development, we need to release the
Com interface ASAP.
Also in .NET com interop scenario, the Wrap did not have many sense about
the COM object?s release order due to every COM may have its own rule to
use and release the Object. So we commonly suggest the Dev to call
Marshal.ReleaseComObject to release the reference to the COM object.

Also for your reference, can you build a simple reproduce sample for us to
do further troubleshooting£¿
You can reach me via removing "online" from my email address.

BTW, We did not provide large project code review in newsgroup support. And
if you are urgent for the issue, you can contact MSPSS directly via the
link below.
http://support.microsoft.com/

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
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