all groups > dotnet interop > january 2007 >
You're in the

dotnet interop

group:

Unable to debug


Re: Unable to debug Nandan Dharwadker
1/25/2007 2:42:01 PM
dotnet interop:

I have that problem too..Basically my debugger as well as my add-in
crashes when i installed framework 2.0 on my machine.
I use it in a similar situation, where i have a C++ excel shim and a
dotnet assembly that provides the UI for my add-in.

Once i installed .NET 2.0, then my VS2003 debugger would try to load
the 2.0 framework libraries, and would promptly crash.

In your case, i think what is happenning is that Excel may be loading
the newer version of the framework (not just mscoree.dll which will
always be the latest one) but all of the managed assemblies as well.

One way to figure out whether this is happenning is to look in the
output information of the debugger to see what versions of the dlls it
is loading.Another is to download Sysinternals (I guess its
Microsofts's now :-)) Process Explorer and see what versions of the
dlls are being loaded by Excel.


On Jan 25, 2:29 pm, "William DePalo [MVP VC++]"
[quoted text, click to view]
Re: Unable to debug William DePalo [MVP VC++]
1/25/2007 3:29:24 PM
[quoted text, click to view]

I can't say for certain that it is your problem, but recently a native
application of mine that loads the CLR and some managed components into it
just ceased to be debuggable with VS2003. It turns out I was paying the
price for having installed a new version of the framework on the machine.

If the machine you had been using only had v1.x of the framework, and if the
new one has a more recent version of the framework as well, you might want
to read this post

http://blogs.msdn.com/jmstall/archive/2005/12/05/VS2003_crashes_with_2005.aspx

for the workaround.

Regards,
Will

www.ivrforbeginners.com

Unable to debug L-E Eriksson
1/25/2007 5:04:13 PM
Hello!

I have a vb.NET dll that I use from Excel. From Excel the functions in the
dll is called. This works and has done so for a long time.

But what has stopped working is debugging. After changing computer I can't
debug calls from Excel to the component. Of course I have in the property
pages for the dll checked the box "Start External Program" and pointed out
Excel.exe.
- I have also set the projects output path to the folder of excel.exe.
- The "Generate debugging info" checkbox is checked as well.
- The pdb is generated and is located in the same folder as the dll.

When I run the project, excel is starting. But on the very first call to the
..NET component, excel.exe is terminated and execution stops, without error
message.

Note: Debugging in this scenario worked for several years, before changing
computer.

Setup:
Windows XP SP2,
VS.NET 2003 SP1
..NET Framework 1.1/2.0
Excel 2000

Any hints welcome!



Re: Unable to debug L-E Eriksson
1/26/2007 11:24:01 AM
Thanks all for your help

The config trick
http://blogs.msdn.com/jmstall/archive/2005/12/05/VS2003_crashes_with_2005.aspx

Regards L-E Eriksson

AddThis Social Bookmark Button