473,769 Members | 2,232 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with VS2005 Debugger

Hi NG,

It looks like I have a problem with the debugger.
Running the current project every thing "looks" fine, but if I set a
breakpoint at a certain position in my code it takes the debugger very long
to stop there. Then, if I try to step forward in my code I get the following
error message (translated from German):

"There are no symbols for the call list frame. The source code can not be
displayed"

I hope I used the right translation german : "Aufruflistenra hmen" = "call
list frame"

What are the possible reasons to this problem?

Regards
Rainer Queck
Jun 27 '07
13 1510
"Freddy Potargent" <fr************ **@amcnv.bewrot e in message
news:9q******** ***********@pho bos.telenet-ops.be...
>A proper OO design will have only simple and pure property getters
The only OO design characteristic I think fits here is encapsulation, and
that would say that whether a property access has side-effects is completely
up to the owner of the property.

///ark
Jun 29 '07 #11
* Mark Wilden wrote, On 29-6-2007 20:45:
"Freddy Potargent" <fr************ **@amcnv.bewrot e in message
news:9q******** ***********@pho bos.telenet-ops.be...
>A proper OO design will have only simple and pure property getters

The only OO design characteristic I think fits here is encapsulation, and
that would say that whether a property access has side-effects is completely
up to the owner of the property.
If a property is dangerous in the way that it has altering behavior on
it's getter, you can mark it to hide it from the debugger altogether.

Jesse
Jun 29 '07 #12
I agree with you Mark to some point. I try to avoid property getters
with observable side effects, like a "get and advance" property. Those
I usually split in a pure getter and a "command" Next() that advances to
the next item.

The base libraries also use this idiom, see for instance enumerators
where you have a "Current" property and a void "MoveNext() " command.

A property that changes internal state but has no observable effect is
used more often. For instance on first access of some "expensive"
property a value is fetched/calculated and cached. This will not change
the external view of your class but you must expect that during
debugging the cached values *can* be calculated or fetched at different
moments then running stand-alone.

A fun one is having logging active in a property getter, safe but
your logs can look strange (filled with unexpected entries) after a
debugging session. :-)

But I agree that it's sometimes useful to have a property with *real*
side-effects and like Jesse pointed out, you can hide or sanitize these
for the Debugger using the
DebuggerBrowsab le(DebuggerBrow sableState.Neve r)
DebuggerHidden( )
DebuggerDisplay ("some safe info about the property")
attributes.

An example of an "get and advance" property is a UniqueID class. The
class is responsible to never return the same ID twice so encapsulation
requires a property with side-effects. :-) You could also argue that in
this case you don't make a property but a function NextID() to make it
clear it's not *just* a property.

-- Freddy
Jesse Houwing schreef:
* Mark Wilden wrote, On 29-6-2007 20:45:
>"Freddy Potargent" <fr************ **@amcnv.bewrot e in message
news:9q******* ************@ph obos.telenet-ops.be...
>>A proper OO design will have only simple and pure property getters

The only OO design characteristic I think fits here is encapsulation,
and that would say that whether a property access has side-effects is
completely up to the owner of the property.

If a property is dangerous in the way that it has altering behavior on
it's getter, you can mark it to hide it from the debugger altogether.

Jesse
Jul 2 '07 #13
It may or may not be a good idea for property access not to have side
effects. I was just saying that I didn't see any OOP reason for doing it.

///ark
Jul 2 '07 #14

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

Similar topics

0
993
by: PaulM | last post by:
While using the debugger in VS2005 it occasionally will cause an Application_Error. The reason I know this is the first line of the Application_Error method checks the request object: if (Request.Url.Segments == "get_aspx_ver.aspx") This code was for VS2003 to catch when it was checking for the hidden file 'get_aspx_ver.aspx" to check which version of Framework was loaded. It appears that VS2005 does something different. Anybody...
1
1303
by: dethonlegs | last post by:
Hi, I have a small vb.net app that runs as a cgi under IIS6. When compiled under VS.NET 2003 (framework 1.1) I can launch the dubugger from IIS by adding the line "System.Diagnostics.Debugger.Launch" in my code. However under VS.NET 2005 (framework 2.0) the same application ignores any attempt to launch the debugger when run from IIS. In addition, there are many security permission issues that are causing me greif that were not an...
3
2292
by: Doug | last post by:
I'm having problems w/ the VS2005 debugger with C#. It blows past any breakpoints in even the simplest "Hello World" console application. I can't do any step-by-step debugging. I've provided the code and debugging output later in this post. I've seen a number of threads with similar problems that I'll address below. The one that's the largest concern is this one, which talks about the same problem trying to use the debugger with SQL...
2
333
by: Nadav | last post by:
Hi All, I am writing a Thread pooled P2P application using C++ and VS2005, occasionally I get “HEAP: Free Heap block 356bf0 modified at 356f84 after it was freed“,When the error is triggered, it report a constant memory address, this address belong to a certain object, if this object is NOT removed from memory the problem is never produced, however, when the object IS REMOVED the problem happen while accessing a totally different...
0
1476
by: GT | last post by:
This question has been posted before, but without any response so therefore I'm trying once more. I'm trying to embed .resource files into a Windows application in VS2005, and then compile and run the program from VS2005. This does not work because the debugger seems not find the resource files, and I keep getting the following error: "MissingManifestResourceException:
10
21826
by: Ole | last post by:
Hi, Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't debug my C# program from VS2005 - when setting a breakpoint I only see a ring instead of the normal red dot and when holding the mouse over it I see a message saying: "The breakpoint will not currently be hit. The specified module has not been loaded". I have no problem when debugging a normal full framework application. I have not changed anything in my settings...
4
5806
by: Al Norman | last post by:
We have two separate DLLs that do not interact (directly, at least). One is an MFC extension DLL that was built back in VC++ 6 days (but has been recompiled with VS2005). The other is a DLL that contains .Net functions wrapped in C++ (as described by Paul DiLascia -- see http://msdn.microsoft.com/msdnmag/issues/06/06/CAtWork/default.aspx). Both DLLs specify 'Use MFC in a shared DLL'. Since we have an old VC 6 application (large) that we...
5
3026
by: Gumby | last post by:
Hi there! A "special" project team in our department has decided to purchase XMLSpy. We standardize on VS2005 as our IDE and up to now everyone has used the XML parser in VS2005. Are there advantages to using XMLSpy over VS2005? Apparently there are "integration diagrams" that VS2005 does not have natively. Does someone have a link or a MVP have some comparison I could have? Warmly Adrian
4
1524
by: Ismo Salonen | last post by:
I've got code that works when started normally (explorer, command whatever) but fails when started from VS2003. It crashes in different place when started with debugging (F5) and other place when started without debugging ( CTRL+F5). The same code works correctly on W2K/W2K3/XP. All modules are C++ code. The Visual Studio 2003 must be currently used due to 3rd party libraries. It has the SP1 installed.
0
9422
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10206
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
10035
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
9984
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
8863
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...
0
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3556
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2811
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.