Solved

help with VB solution

Posted on 2014-01-15
8
301 Views
Last Modified: 2014-01-16
My harddrive crashed and I had rebuild and pull code from a backup server.  

I have a project that uses 2 DLL's.   I have the 2 DLL projects added into my solution.  I'm getting an error when running, but I cannot step into the code to debug.  The code getting the error is in the DLL source code.   I do not understand why I cannot step into it. This used to work,.

 See images.
error.png
error1.png
0
Comment
Question by:HLRosenberger
  • 5
  • 3
8 Comments
 
LVL 40
ID: 39783732
You probably set the reference to the dlls instead of the project.

When you want to be able to step into a dll code, you need to set the reference differently, at least in VB and C#. I suppose this is the same thing in C++.

When you set the reference, you probably have a tab that list references to Projects instead of .NET or COM. This is were you should set your reference.
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 39783742
but I'm adding each project to the main solution.  It that not the way to go?
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 39783757
so, so I have add each project to the main solution, and then add as a "Project" type reference?
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 1

Author Comment

by:HLRosenberger
ID: 39783767
uggg.    I have added each project to the main solution, and then added each as a "Project" type reference.  Still no go...
0
 
LVL 40
ID: 39783802
Are you in VB or C++?

Is the debugger enabled for the configuration that you are using? As far as VB is concerned, if you installed a newer version of Visual Studio when you rebuilt your computer, there has been a small change for debugging. Some of the debugger features do not work anymore if you set the "Generate debug info" selection to pdb-Only in the Advanced Compile Options. It has to be set to Full.

Tools...Options...Debugging also has one or two options that can prevent stepping into your own properties and methods.

Can you send a screen shot of your Solution Explorer and one of your References?
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 39785389
same version of VS as before - 2010.  See images.

I have added the 2 DLL projects into my solution, and then added the projects as a reference.

I still cannot step inte the DLL source code.
image1.png
image2.png
image3.png
image4.png
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 39785491
In the options, you have the "Step over properties and operators" option checked, so the debugger goes over these without entering them.

This is often set through a dialog that shows up the first time you encounter a call to a property while stepping through code after installing Visual Studio. The message might be confusing or annoying when your mind is focused on what is happening in the code, and many programmers close it without knowing about the consequences of their answer.
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
ID: 39785962
That was it. Thanks!   In my old setup before the harddrive crashed, this must have not been checked.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question