Symbol MyFile.pdb file does not match the module

I searched for this problem and found many tastes and ideas, but no real solutions. So, putting on my asbestos suit and hoping for the best, I'm going to dare to ask him again.

I have C # code that calls C ++ managed code, which in turn calls unmanaged C ++ code. Unmanaged C ++ code throws an exception, and I would like to be able to debug it. However, when I try (explicitly through the call stack) to load characters, I get the scary "MyFile.pdb character file error does not match module error."

I assume this is a generic error code returned since the files are from the same assembly. Using the chkmatch tool seems to confirm that the files really match.

Any help is much appreciated ... WTS

+2
c ++ debugging managed unmanaged visual-studio-2008-sp1
source share
1 answer

Maybe you should check the path to the loaded dll - you are using the one you think where you are?

If you use incremental builds, you may also need idb files

I had a problem when MSVC just didn't want to see any debugging symbols at the time, it didn't work out why, but instead worked on the problem using CrashFinder or windbg. Perhaps the reboot will work again.

You can use symstore during build to ensure that all pdbs are captured more reliably, so you can also debug multiple builds of a file.

+1
source share

All Articles