473,756 Members | 3,111 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 #1
13 1509
Hello Freddy,

thanks for answering!

"Freddy Potargent" <fr************ **@amcnv.beschr ieb im Newsbeitrag
news:dI******** **********@phob os.telenet-ops.be...
Hey Rainer,

Do you have a mixed assembly, ie C++ and C++/CLI or other managed code?
No, not that I would be aware of.

In the meanwhile I did some more down trace on the problem, and I found the
location, the problem starts.
In one of my classes, I create and start a thread from within the construcor
like this:

{
...
myThread = new Thread(new ThreadStart(myT hreadMethod));
myThread.IsBack ground = true;
myThread.Start( );
}

If I put the breakpoint on "myThread.Start ()" the debugger gets there right
away, no problems.
if I put the brreakpoint on "}" and a other one at the beginning of
"myThreadMethod " it takes the debugger long time to stop, and I get the
problem described on the beginning.

I hope this additional information helps to locate the cause of my problem!

Regards
Rainer Queck
Jun 27 '07 #2
Hey Rainer,

Do you have a mixed assembly, ie C++ and C++/CLI or other managed code?
Then the following MSDN article about possible loader lock problems
might be interesting for you and explain what is happening.

http://msdn2.microsoft.com/en-us/lib...66(vs.80).aspx

I'm not aware of any other problem that could give this error. VS2005
has so-called MDA's (Managed Debug Assistents) which detect this (and
other) problems.

-- Freddy

Rainer Queck schreef:
... found out more, which still does not help me...
as I tried to continue an other message came up :"LoaderLock was
recoginized"
Plus the help text wich is like : "A managed execution is tried within the
lockk for the OS-Loader..."

This still doesn't give me the idea, what I am doing wrong. Please give me
some hints on what to look for.

Regards
Rainer Queck

Jun 27 '07 #3
.... found out more, which still does not help me...
as I tried to continue an other message came up :"LoaderLock was
recoginized"
Plus the help text wich is like : "A managed execution is tried within the
lockk for the OS-Loader..."

This still doesn't give me the idea, what I am doing wrong. Please give me
some hints on what to look for.

Regards
Rainer Queck
Jun 27 '07 #4
Hi Rainer,

Thanks for your feedback.

I agree with Pete that we need more information to understand why this
strange error is generated.

In addition to Pete's comment, is it possible for you to create a little
sample project to help us reproduce this problem locally? Once we can
reproduce this locally, it would be more efficient to debug it and
understand it.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Jun 28 '07 #5
Hi Pete, Hi Jeffrey,

thanks for your efforts on helping me.
I can understand, that it is very hard to find the reason for my problems,
not knowing the project its self.

Hoping the it might make things a little more clear, I copied a couple of
jpgs to my websit to give you a better impression:
http://www.qutronic.de/Temp/sqAdWinStartUp.jpg shows where the breakpoints
are and how I get there as a sequence diagram.

http://www.qutronic.de/Temp/csAdwinStartup.jpg shows the classes involved as
a class diagram.

http://www.qutronic.de/Temp/codeDecorator.jpg shows the code of the
"ADWinDecorator .Instance() mehtod.

http://www.qutronic.de/Temp/codeAdWinConstr.jpg shows the code, where the
thread is created.

http://www.qutronic.de/Temp/codeProcessAdwin.jpg shows the threadMethod with
its breakpoint.

Jeffrey, If this does not give enough information, I could zip the project
and send it to you.
I doubt that I will be able to generate a sample project that will show the
same effects.

Regards
Rainer Queck

""Jeffrey Tan[MSFT]"" <je***@online.m icrosoft.comsch rieb im Newsbeitrag
news:Xu******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Rainer,

Thanks for your feedback.

I agree with Pete that we need more information to understand why this
strange error is generated.

In addition to Pete's comment, is it possible for you to create a little
sample project to help us reproduce this problem locally? Once we can
reproduce this locally, it would be more efficient to debug it and
understand it.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.

Jun 28 '07 #6
Rainer Queck schreef:
>Try disabling func eval in the debugger: Tools -Options -Debugging and
uncheck the "Enable property evaluation and other implicit function
calls".
That solves the problem right away. Thanks for this hint!
Glad it's solved now!
Is this now a "bug" in the Debugger, or is there the possibility of a
general not so ideal class design done by me, or in other words:
Is this something I am doing wrong?
A bit of both I would say. ;-)

It's a very useful but *dangerous* feature of the debugger. The debugger
expects properties to be pure functions (ie no side-effects, always
return the same value when called with the same arguments, no visible
change of class state). A proper OO design will have only simple and
pure property getters and then you'll have no problems. But this is
easier said then done. :-)

Most problems happen in multi-threaded code but this can also bite you
in single threaded code when you have a property with side effects, for
instance a Next() property that returns a value *and* advances to the
next value. When the debugger calls your property (behind the scenes) to
display the value it also skips to the next one so *changing* the
meaning of your program.

Another problem is when you call functions on the main UI thread from a
property on another thread.

Or as already mentioned, when a property blocks on another thread.

Here are some blogs that dig deeper into the matter.
http://blogs.msdn.com/greggm/archive...18/494648.aspx
http://blogs.msdn.com/jmstall/archiv...23/400794.aspx

The big advantage is that you get more detailed info on your class when
debugging. Say eg you have a property that calculates some value based
on the current state of your class (ie a count of items in a collection
or the average value or a conversion from cartesian to polar coordinates
or ... ), the debugger will display the value immediately without you
having to calculate it from the class members.

Other (dangerous/evil) advantages are mentioned in the blogs. :-)

Also take a look at the System.Diagnost ics.DebuggerDis play,
DebuggerHidden, ... attributes. You can use these to guide the debugger
away from dangerous properties while keeping the better debug displays
for safe properties.

Have fun,

-- Freddy
Jun 28 '07 #7
Hey Freddy,

thank you very much for your detailed explanations!
I think I start to understand, where the problem is.
I'll have to do a little more reading on that subject.

Thanks for your help!

Regards
Rainer
Jun 28 '07 #8
Hi Rainer,

Oh, glad to see turning off the property/function evaluation can resolve
this problem. This thread appears as informative to me either. I will add
this issye to my information list so that if we meet strange behavior in
future we can give this a consideration.

Freddy, thank you for sharing with the community!

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Jun 29 '07 #9
My pleasure! :-)

I have also got quite some interesting info from this NG just from
lurking so now when I have a chance to reverse the "dataflow" I'll do
it, when time permits of course. :-)

Kind regards,

-- Freddy
Jeffrey Tan[MSFT] schreef:
Hi Rainer,

Oh, glad to see turning off the property/function evaluation can resolve
this problem. This thread appears as informative to me either. I will add
this issye to my information list so that if we meet strange behavior in
future we can give this a consideration.

Freddy, thank you for sharing with the community!
Jun 29 '07 #10

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
1302
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
2291
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
1475
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
21824
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
5805
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
1523
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
9930
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
9716
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
9716
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
9571
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7116
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
6410
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();...
1
3676
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
3185
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2542
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.