Com Add-in crashes Visio when run from Visual Studio

C

Chris [Visio MVP]

Hey All,

I've got a COM Add-in, developed in VB.NET (2003) that's been working fine
for a long time.

Recently, though, there's been problems.

If I run it in debug mode, from Visual Studio, Visio crashes immediately.
The Connect event doesn't even fire.

If I start Visio, then the add-in runs just fine.

I have been mucking around with the Com Shim Wizard, and had gotten that to
work as well. Not sure if that's related, because when I remove the shim,
the same problem exists.

Anybody had a similar situation...and resolution?
 
A

Al Edlund

Chris,
What are you coding in (c#, vb, c++), and are you using vs2005 ?
I thought I copied you on the <comvisible(true)> problem I just went
through.
Al
 
C

Chris [Visio MVP]

Nah, VS 2003, VB.NET.


Al Edlund said:
Chris,
What are you coding in (c#, vb, c++), and are you using vs2005 ?
I thought I copied you on the <comvisible(true)> problem I just went
through.
Al
 
C

Chris [Visio MVP]

The thing worked fine for months, but now Visio crashes immediately on start
from Visual Studio, but not when I start Visio.

I'm not sure how to even figure out what is going wrong. The system EventLog
doesn't say much....




Al Edlund said:
Chris,
What are you coding in (c#, vb, c++), and are you using vs2005 ?
I thought I copied you on the <comvisible(true)> problem I just went
through.
Al
 
D

David P (Visio MVP)

Have you installed .Net FW 2?

Chris said:
The thing worked fine for months, but now Visio crashes immediately on start
from Visual Studio, but not when I start Visio.

I'm not sure how to even figure out what is going wrong. The system EventLog
doesn't say much....
 
M

Martin

Hi Chris, Hi David.

I got the same problem.

VS 2003, C# Add-In 4 Visio and FW 2.0.

I posted it within another thread and then saw this one.
Perhaps you got a solution and could let me know about it by replying
here :)

Thanks a lot,
Martin
 
C

Chris [Visio MVP]

Now that I think of it, I DID install the 2.0 framework to test one of
Senaj's add-ins.

After uninstalling the 2.0 framework, the debugging works again. Any ideas
of how 1.1 and 2.0 can co-exist?

- chris


David P (Visio MVP) said:
Have you installed .Net FW 2?

Chris said:
The thing worked fine for months, but now Visio crashes immediately on
start
from Visual Studio, but not when I start Visio.

I'm not sure how to even figure out what is going wrong. The system
EventLog
doesn't say much....




Al Edlund said:
Chris,
What are you coding in (c#, vb, c++), and are you using vs2005 ?
I thought I copied you on the <comvisible(true)> problem I just went
through.
Al

"Chris [Visio MVP]" <visioguy at hotmail.com> wrote in message
Hey All,

I've got a COM Add-in, developed in VB.NET (2003) that's been working
fine for a long time.

Recently, though, there's been problems.

If I run it in debug mode, from Visual Studio, Visio crashes
immediately.
The Connect event doesn't even fire.

If I start Visio, then the add-in runs just fine.

I have been mucking around with the Com Shim Wizard, and had gotten
that
to work as well. Not sure if that's related, because when I remove the
shim, the same problem exists.

Anybody had a similar situation...and resolution?
 
M

Martin

David recently posted this part here:

I got the same error as you described and with this conf file it works
just fine.
 

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