I am using ber_decode() successfully (returncode 0) to decode a der encoded file in Visual Studio 2022.
After decoding, I am calling asn_fprint() to print the entire to stdout. No problems, all data is successfully decoded and printed.
But in the "Watch" windows of the debugger of VS2022, this expression repBlock->captureDateTimeBlock != nullptr evaluates to true while an if statement with the same expression evaluates it to false.
What could be the cause?
I am using
ber_decode()successfully (returncode 0) to decode a der encoded file in Visual Studio 2022.After decoding, I am calling
asn_fprint()to print the entire tostdout. No problems, all data is successfully decoded and printed.But in the "Watch" windows of the debugger of VS2022, this expression
repBlock->captureDateTimeBlock != nullptrevaluates totruewhile an if statement with the same expression evaluates it tofalse.What could be the cause?