Solved

Problem with PDB file

Posted on 2001-08-22
4
598 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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 video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

20 Experts available now in Live!

Get 1:1 Help Now