467,895 Members | 1,406 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,895 developers. It's quick & easy.

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
  • viewed: 2865
Share:

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 this site, you agree to our Privacy Policy and Terms of Use.