This conditional statement looks as if it would be executed if all values return from the different functions return zero. If the body of the function isn't executed, I would debug the problem as follows:
Log the values of all functions prior to the
if
-statement:std::cout << "page-layer=" << !m_pMediaPage->PageLayer() << ' ' << "load-state=" << !m_pMediaPage->LoadState() << ' ' << "request-list=" << !m_pMediaPage->m_bRequestList << '\n';
Yes, the debugger should show these values as well but I have great faith in the values being printed to be the values actually evaluated.
If that doesn't give the necessary insight into what goes wrong, I would start breaking down the condition into separate parts and verify success at each level, e.g.:
if (!m_pMediaPage->PageLAyer()) { std::cout << "page-layer is not set\n";\ } if (!m_pMediaPAge->LoadState()) { std::cout << "load-state is not set\n"; ...
If this still doesn't give any insight, I'd start suspecting that the functions return funny values and I would verify that the different results are funny values and I would start looking at the output after preprocesing using the
-E
option.