Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

help with VB solution

Posted on 2014-01-15
8
Medium Priority
?
309 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

782 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