Solved

Problem with PDB file

Posted on 2001-08-22
4
600 Views
Last Modified: 2013-12-03
I am using Microsoft Visual C++ 6.0.

Does anybody have experience with the dialog box "Find Symbols: Please enter the path for <filename>.pdb"?

I have a MFC application and a static library which is used by the application.

If I set a breakpoint into the static library and want to start debugging, the "Find Symbols" dialog appears.
If I select the path for the PDB file and press OK, the message "A file with the correct name was found in this directory, but it is not the correct one." appears.
But I am absolutely sure that it is the correct one.

Rebuild All does not help.

What could be wrong?

Thanks,
Markus
0
Comment
Question by:mskohut
  • 2
4 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 6414260
This is due to the fact that the MFC library you are linking with were not built with the MFC source files you currently have.  Either:

1) Rebuild your MFC library files from the source you have (not recommended since your source is likely out of date)

2) Re-install your VC++ environment and all SPs and be sure that you include the option to load MFC Source files.

0
 
LVL 32

Expert Comment

by:jhance
ID: 6414284
BTW, I've never found much value in tracing through MFC calls.  So unless you are just interested in exploring the MFC library internals, I'd suggest you just ignore these requests.
0
 

Author Comment

by:mskohut
ID: 6416534
What I forgot to mention in my question above:

The PDB file I was asked for in the "Find symbols" dialog is the PDB file for the *static library* which I use in my MFC application.
It's not a MFC PDB file.
Sorry.

Rebuild of the static library doesn't help. The debugger doesn't want to accept my PDB file.
0
 
LVL 9

Accepted Solution

by:
BeyondWu earned 200 total points
ID: 6420957
Search all the yourstatic.lib and delete it, Find all the *.PDB and delete it, then rebuild the static lib all, then rebuild your MFC project all.

If you still can't resolve it, try this:
Click "Project|Settings.." then click the "Link" tab, then select "Customize" in the "Category" box. remove the "Use program database".

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now