Solved

help with VB solution

Posted on 2014-01-15
8
300 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now