471,088 Members | 1,267 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,088 software developers and data experts.

Cannot set breakpoint in a certain project

Hi. Ive been using Visual C++ for two years on an application. The
application is one solution, containing 10 projects. 9 of the projects build
libraries (*.lib). I've been debugging the application for 2 years. One
thing that has been happening for several months is a genuine mystery:

I cannot set breakpoints in one of the libraries (source code). I can
create the breakpoint in the source code editor, but when I attach to the
application, I get a warning message:

"he following breakpoint cannot be set
At MyFile.cpp, line 123
The Common Language Runtime was unable to set the breakpoint

And the breakpoint, indeed, does not function. This problem holds for every
function in this one library (project). But only this one project: all
other projects in the solution have no problem with breakpoints.

Another clue: When I am stepping lines in the debugger, and I step down
into any function in the library with the problem, Visual C++ shows the
source code, and kind of steps thru it, but it takes several steps to move
one source code line, almost as if each "step" steps one line of assembly.

The variables "watch" display does not work for this one library, either.

All this is compiled in the Debug configuration, not Release.

The mysterious thing is that the problem is only with the one Library
(project) in this solution: My other 8 libraries work fine.

So my question is: Does anyone have any ideas what would cause Visual C++
to be unable to set a breakpoint (at attach time) in one particular project
(library) when all other projects in the solution have no problem.

Thanks in advance for any help.

Aug 3 '06 #1
0 3005

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by chris | last post: by
3 posts views Thread by John Kutsor | last post: by
2 posts views Thread by Ofer Zelig | last post: by
7 posts views Thread by =?Utf-8?B?TWljaGFlbA==?= | last post: by
4 posts views Thread by JohnR | last post: by

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.