My application crashed (with the "cannot read memory, press OK to
terminate or Cancel to debug" message) on the machine that has VC7.1. I
just copied the original project with pdb file to that machine, opened
the project, pressed Cancel to the above message, and chose this
instance of Visual Studio. But I couldn't step through my code, only
through internal MFC code.
Does anybody knows what am I doing wrong? 8 1642
When the debugger is attached you can see whether it could load the pdb in
the debug output window. It should say something like "symbols loaded" next
to your exe or dll.
"Mihajlo Cvetanović" <ma*@RnEeMtOsVeEt.co.yu> wrote in message
news:uL**************@TK2MSFTNGP09.phx.gbl... My application crashed (with the "cannot read memory, press OK to terminate or Cancel to debug" message) on the machine that has VC7.1. I just copied the original project with pdb file to that machine, opened the project, pressed Cancel to the above message, and chose this instance of Visual Studio. But I couldn't step through my code, only through internal MFC code.
Does anybody knows what am I doing wrong?
When the debugger is attached you can see whether it could load the pdb in
the debug output window. It should say something like "symbols loaded" next
to your exe or dll.
"Mihajlo Cvetanović" <ma*@RnEeMtOsVeEt.co.yu> wrote in message
news:uL**************@TK2MSFTNGP09.phx.gbl... My application crashed (with the "cannot read memory, press OK to terminate or Cancel to debug" message) on the machine that has VC7.1. I just copied the original project with pdb file to that machine, opened the project, pressed Cancel to the above message, and chose this instance of Visual Studio. But I couldn't step through my code, only through internal MFC code.
Does anybody knows what am I doing wrong?
Mihajlo, My application crashed (with the "cannot read memory, press OK to terminate or Cancel to debug" message) on the machine that has VC7.1. I just copied the original project with pdb file to that machine, opened the project, pressed Cancel to the above message, and chose this instance of Visual Studio. But I couldn't step through my code, only through internal MFC code.
Does anybody knows what am I doing wrong?
The debugger is probably not finding the symbols for your libraries. Once
you start debugging, open the Modules Window, and you should see your
exe/dlls in that list. My bet is that they say "symbols not loaded". If so,
you can right click on each one and select "Reload Symbols", which will
bring up a Open File dialog where you can browse for the correct pdb file.
Also, you'll want to load your source files in VS as well.
--
Tomas Restrepo to****@mvps.org http://www.winterdom.com/
Mihajlo, My application crashed (with the "cannot read memory, press OK to terminate or Cancel to debug" message) on the machine that has VC7.1. I just copied the original project with pdb file to that machine, opened the project, pressed Cancel to the above message, and chose this instance of Visual Studio. But I couldn't step through my code, only through internal MFC code.
Does anybody knows what am I doing wrong?
The debugger is probably not finding the symbols for your libraries. Once
you start debugging, open the Modules Window, and you should see your
exe/dlls in that list. My bet is that they say "symbols not loaded". If so,
you can right click on each one and select "Reload Symbols", which will
bring up a Open File dialog where you can browse for the correct pdb file.
Also, you'll want to load your source files in VS as well.
--
Tomas Restrepo to****@mvps.org http://www.winterdom.com/
Thank you fellows for the useful info, the error was the most obvious
one: the application and the project don't match, with a half an hour
distance.
This only proves the point that whatever job you're trying to rush on
Friday at 9 PM (like debugging the crash on another machine), it can't
come out good.
Saying that, I have another question. Is there a way to force the
debugger to use inappropriate PDB? Granted, it would show the wrong info
in some parts of the code, but it would still be usable in other parts.
Thank you fellows for the useful info, the error was the most obvious
one: the application and the project don't match, with a half an hour
distance.
This only proves the point that whatever job you're trying to rush on
Friday at 9 PM (like debugging the crash on another machine), it can't
come out good.
Saying that, I have another question. Is there a way to force the
debugger to use inappropriate PDB? Granted, it would show the wrong info
in some parts of the code, but it would still be usable in other parts. Saying that, I have another question. Is there a way to force the debugger to use inappropriate PDB? Granted, it would show the wrong info in some parts of the code, but it would still be usable in other parts.
Yes, in many cases it is possible: http://www.debuginfo.com/articles/de...#loadunmatched
Regards,
Oleg
[VC++ MVP]
Oleg Starodumov wrote: Saying that, I have another question. Is there a way to force the debugger to use inappropriate PDB? Granted, it would show the wrong info in some parts of the code, but it would still be usable in other parts.
Yes, in many cases it is possible: http://www.debuginfo.com/articles/de...#loadunmatched
That's it, ChkMatch is what I was after (the only better solution is
that the debugger allows debug info mismatch). Thank you for the very
usable 50 kB piece of code. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: VicVic |
last post by:
Dear Great Experts,
I have a problem and need your help!
We have a Flat DLL built in C++ (CCC), and on top of it, we built another
DLL built...
|
by: Mihajlo Cvetanović |
last post by:
My application crashed (with the "cannot read memory, press OK to
terminate or Cancel to debug" message) on the machine that has VC7.1. I
just...
|
by: Wayne Wengert |
last post by:
I built an ASP application and it runs fine on my local IIS. I am trying to
move the application to my web service (ISP) out on the internet. I've...
|
by: bob lambert |
last post by:
Help
I am trying to deploy to another pc a vb.net std 2002
windows form application. I am confused.
I created a project - windows form
I...
|
by: Ian Boyd |
last post by:
IIS5, on a Windows 2000 Server machine.
Debeg.WriteLine "Hello, world!"
How can i view it?
|
by: Hongbo |
last post by:
Hi,
I have a web site built in ASP.Net 1.1 running on production server. It's the version 1.0.
Now I need to build the version 2.0 for this web...
|
by: Bardo |
last post by:
Hi all,
We are trying to debug an assembly which was built in debug configuration on
our build server. The output window of visual studio...
|
by: Andrew Rowley |
last post by:
I am having trouble getting debug and release builds to work properly
with project references using C++ .NET and Visual Studio 2003.
I created a...
|
by: AG |
last post by:
Hi all,
New install of VS 2005 Pro (SP1) on new machine with Windows XP Pro SP2,
Core 2 Extreme Quad Core processor, 4GB RAM.
Trying to debug...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
|
by: jalbright99669 |
last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was...
|
by: Matthew3360 |
last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
|
by: WisdomUfot |
last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
|
by: Matthew3360 |
last post by:
Hi,
I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
|
by: Oralloy |
last post by:
Hello Folks,
I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA.
My problem (spelled failure) is with the...
|
by: Carina712 |
last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...
| |