I'm using DIA Sdk to extract some information from PDB files. I create the non-com DiaSourceAlt object so I must use LocalFree to free strings.
The following piece of code works fine in x86 but, on x64, the LocalFree call corrupts the heap.
IDiaSymbol *lpSymbol;
BSTR bStrName;
...
hRes = lpSymbol->get_undecoratedNameEx(0x87FE, &bStrName);
if (SUCCEDED(hRes))
LocalFree(bStrName);
Any suggestion? (I'm using msdia90.dll)
Regards, Mauro.