Solved

help with VB solution

Posted on 2014-01-15
8
303 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

 
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Assigning handler to UserControls in flowlayoutpanel 4 28
Footer for each row on Gridview 2 33
Visual Studios 1 77
VB.Net Determine if a mapped network drive exists 2 32
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
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…

820 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