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 / January 2007

Tip: Looking for answers? Try searching our database.

Unable to debug

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
L-E Eriksson - 25 Jan 2007 16:04 GMT
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!
William DePalo [MVP VC++] - 25 Jan 2007 20:29 GMT
> 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.
[quoted text clipped - 13 lines]
> Note: Debugging in this scenario worked for several years, before changing
> computer.

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
Nandan  Dharwadker - 25 Jan 2007 22:42 GMT
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++]"
<willd.no.s...@mvps.org> wrote:

> > 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.
[quoted text clipped - 29 lines]
>
> www.ivrforbeginners.com- Hide quoted text -- Show quoted text -
L-E Eriksson - 26 Jan 2007 10:24 GMT
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

Rate this thread:







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.