adrianstone55 / SymbolSort

A Utility for Measuring C++ Code Bloat
http://gameangst.com/?p=320
Apache License 2.0
117 stars 17 forks source link

Not working on VS2019? #30

Open XZiar opened 3 years ago

XZiar commented 3 years ago

I've registered the dll DIA SDK\bin\amd64\msdia140.dll and also added the dll into reference. I build and run x64 target but it always throw the exeception:

Reading section info...
Reading source file info...
Reading global function symbols...
System.NotImplementedException: The method or operation is not implemented.
   at Dia2Lib.IDiaSymbol.findChildren(SymTagEnum symTag, String name, UInt32 compareFlags, IDiaEnumSymbols& ppResult)
   at SymbolSort.SymbolSort.ReadSymbolsFromScope(IDiaSymbol parent, SymTagEnum type, SymbolFlags additionalFlags, UInt32 startPercent, UInt32 endPercent, IDiaSession diaSession, List`1 sectionContribs, Dictionary`2 compilandFileMap, List`1 symbols) in  C:\ProgramsData\VSProject\DEPENDENCY\SymbolSort\SymbolSort.cs:915
   at SymbolSort.SymbolSort.ReadSymbolsFromPDB(List`1 symbolsOutput, String filename, String searchPath, UserFlags options)  in C:\ProgramsData\VSProject\DEPENDENCY\SymbolSort\SymbolSort.cs: 1224
   at SymbolSort.SymbolSort.LoadSymbols(InputFile inputFile, List`1 symbols, String searchPath, UserFlags options) in C:\ProgramsData\VSProject\DEPENDENCY\SymbolSort\SymbolSort.cs:1550
   at SymbolSort.SymbolSort.Main(String[] args) at C:\ProgramsData\VSProject\DEPENDENCY\SymbolSort\SymbolSort.cs:1825

The msdia140.dll version is 14.28.29910.0