The Symbol file MyFile.pdb does not match the module

I've searched on this issue, and found many flavors and ideas but no real solutions. So, donning my asbestos suit and hoping for the best, I'm going to dare ask it again.

I have managed C# code that calls managed C++ code, which in turn calls unmanaged C++ code. The unmanaged C++ code is throwing an exception, and I'd like to be able to debug through it. However, when I try to (explicitly, via the Call Stack) load the symbols, I get the dreaded "The symbol file MyFile.pdb does not match the module" error.

I'm guessing that this is a generic error code being returned, as the files are from the same build. Using the chkmatch tool would seem to confirm that the files do in fact match.

Any help much appreciated... wTs

Answers


Might be worthwhile checking the path of the loaded dll - are you using the one you thought you where?

If you are using incremental builds, you might also need idb files

I had an issue where MSVC just didn't want to see any debug symbols at the time, didn't work out why, but instead worked around the issue using CrashFinder or windbg instead. Perhaps a reboot will get it working again.

You might like to use symstore during your build to ensure all the pdbs are captured more reliably, that way you can debug across multiple builds of a file too.


Need Your Help

Comparing one list to another and creating a subset list

python list

What the code is supposed to do is to take two lists(list a and list b) of integers as inputs and returns a subset of the second list(list b)that are within on unit of an integer in the first list(...

Neural network accuracy for character recognition

matlab ocr metrics

I have implemented a handwritten character recognition system in Matlab using neural networks. I am confused on how to calculate the accuracy of the system. Do I have to consider the performance on