Hello,
I have just found the issue:
I am going to develop a real fix by handling dll unload correctly.
Thanks a lot for all the information you provide to help solving this issue!!!!
OpenCppCoverage
I have just found the issue:
- vstest.console.exe loads XXX.dll
- OpenCppCoverage adds some breakpoints and fills addressLineMap_ in ExecutedAddressManager::RegisterAddress
- vstest.console.exe unloads XXX.dll => Every breakpoints are lost
- vstest.console.exe loads XXX.dll
- OpenCppCoverage does not add breakpoints because they already exist in addressLineMap_
=> There is no coverage
if (itAddress == addressLineMap_.end()) by if (instructionValue != 0xCC). It should solve the problem temporary.I am going to develop a real fix by handling dll unload correctly.
Thanks a lot for all the information you provide to help solving this issue!!!!
OpenCppCoverage







