473,744 Members | 2,260 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't step into?

I have referenced two .NET DLLs in my project. When debugging, I step
into one of aDLL's methods. aDLL inherits from bDLL. In aDLL, there
is a method called from bDLL. However, I cannot step into it. For
example:
[Project.class1] ( start debugging here and step into mya.dosomething )
aDLL.someclass mya = new aDLL.someclass( );
mya.dosomething ()

[aDLL.someclass: bDLL.anothercla ss] (I can get here with no problems. I
cannot step into getResults)
myObject mo = new myObject();
public void something()
{
mo = getResults()
}

[bDLL.anothercla ss] (Can't get here in debugger)
public void getResults()
{
--do something here
}

Why can I get into aDLL but not bDLL?

Thanks,
Brett

Dec 29 '05 #1
5 2805
Brett Romero wrote:
I have referenced two .NET DLLs in my project. When debugging, I step
into one of aDLL's methods. aDLL inherits from bDLL. In aDLL, there
is a method called from bDLL. However, I cannot step into it. For
example:
[Project.class1] ( start debugging here and step into mya.dosomething )
aDLL.someclass mya = new aDLL.someclass( );
mya.dosomething ()

[aDLL.someclass: bDLL.anothercla ss] (I can get here with no problems. I
cannot step into getResults)
myObject mo = new myObject();
public void something()
{
mo = getResults()
}

[bDLL.anothercla ss] (Can't get here in debugger)
public void getResults()
{
--do something here
}

Why can I get into aDLL but not bDLL?

Thanks,
Brett


Hi Brett,

A few ideas:

Are you properly using inheritance?
-are bDLL's methods virtual?
-Are you overriding the method?
-Are you calling base.method where you want to execute the base classes
methods

It also may be possible that your symbols aren't looking at the right
assembly. Do you have a project reference correctly set, and is your
assembly in the GAC or someplace else?
--
Rob Schieber
Dec 29 '05 #2
>Are you properly using inheritance?
I'm not getting any errors and the base method is executing (that I
know of). What else could say I'm not using inheritance correctly?
-are bDLL's methods virtual? Not the one I'm calling. It is public.
-Are you overriding the method? No. I'm calling it from the base. In the base, it is simply a public
string method.
-Are you calling base.method where you want to execute the base classes

methods
I have done "this.", "base." and just the method name. Same results in
each case.

Thanks,
Brett

Dec 29 '05 #3
Brett Romero wrote:
Are you properly using inheritance?


I'm not getting any errors and the base method is executing (that I
know of). What else could say I'm not using inheritance correctly?

-are bDLL's methods virtual?


Not the one I'm calling. It is public.

-Are you overriding the method?


No. I'm calling it from the base. In the base, it is simply a public
string method.

-Are you calling base.method where you want to execute the base classes


methods
I have done "this.", "base." and just the method name. Same results in
each case.

Thanks,
Brett


If you are positive that the base method is executing correctly, then it
is probably a reference issue. Make sure that you have your project
references set up correctly. You may want to remove and re-add your
references just to be sure. Also, make sure everything is compiled in
debug mode.
--
Rob Scheiber
Dec 29 '05 #4
BTW, these aren't in the GAC. They are in their respective project bin
folders and then copied to the referencing project's bin.

I tried your suggestion of rebuilding the referenced DLL then
removing/adding it back to my project. That worked! Great suggestion.
The DLL was also doing incremental versioning, which I turned off.
The versions are now hard coded. I don't need versioning issues at
this point.

Thanks,
Brett

Dec 29 '05 #5
If you have the projects to both .dll's it is better in the referencing
project to *not* reference the .dll's directly. It is better to add
the projects to your solution and use project referencing instead.
That should alleviate the versioning and debugging issues you are
having.

Dec 30 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3779
by: Andrew V. Romero | last post by:
First off, I am mostly familier with PHP but am trying to make a multi-step javascript program. For an example, I would like to run different sections of the script depending on how many times the user presses the submit button: <form method="post" name="step1" action="test.html"> <script language="JavaScript"> var position
0
1238
by: Dean | last post by:
Hi I am trying to debug a solution made up of a number of projects. When I step into most of the functions of any of the objects my debugger works fine. The only object that won't let me step into the functions for debugging has "Register for COM Interop" set to true in the property pages. I need this object to register for COM Interop so I can't remove that. Although, I have just run a test, and even if I do remove that flag I still...
2
3541
by: Vikram Sinha | last post by:
Hi, I am unable to step into a method call on a webservice(WS) from a webform(WF) when WS and WF are located in separate VS.NET solutions. When I try to step in, step over occurs. BTW, I am able to do this if both the client and the service projects are in the same solution. Any clues as to what may be the problem??
3
3643
by: R Millman | last post by:
under ASP.NET, single stepping in debug mode appears not to stop within event procedures. i.e. 1) Create web page with submit button and event procedure for the click event in the code behind page, 2) Breakpoint in the Page_Load, 3) debug the web page and click the submit button, 4) "step into" under debug several times, 5) The debugger does not stop at any of the statements in the click event handler. A breakpoint is needed in each...
54
3254
by: MLH | last post by:
I use A97 and do not always insert line numbers while writing procedures. I find it necessary to go back and add them later to aid in debugging. Nearly 3 years ago, something was mentioned in this NG to the effect that "...when you access a module programatically, there is a lines collection..." Have any of you experimented with your own procedures to aid in numbering lines? Would the lines collection be of some
4
1826
by: MichaelCombs | last post by:
I'm looking for a way to step into code at the next line of execution in the debugger. Back in the day you could do this in VB by doing something like Ctrl-Break to pause te debugger and then hit F8 (step into). Then you perform some action in your application, say a double click, and then the debugger steps into your double click handler. I'm trying to debug a massive app that I didn't write. I'm trying to hunt down some event handlers....
37
3976
by: jht5945 | last post by:
For example I wrote a function: function Func() { // do something } we can call it like: var obj = new Func(); // call it as a constructor or var result = Func(); // call it as a function
3
1857
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Does anyone know why I have no "Step Into" option during debugging in VS 2005/C# app? I have "Step Over" but no "Step Into" even though it would be stepping into one of my own functions inside the same .cs file.
1
2017
by: Andy B | last post by:
I have a wizard that has 3 wizardSteps. The first one is selecting a NewsArticle from the combobox to edit. The second wizardStep (pressing next) loads the whole database record into a form. The third step would be for them to confirm the changes before submitting. I know how to get the confirm part to work as well as the update part itself but how would I get the combobox step to load the whole record into a form in the next wizardStep?
0
8970
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9486
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9344
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9277
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8218
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6763
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6057
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4572
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4827
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.