- Online Community Forums » Programming Questions » Bug?

This thread is locked; no one can reply to it. rss feed Print
Member #13,747
November 2011

I was testing the Allegro Configuration methods and I came across this. Probably something stupid on my part, but I can't figure it out.

    if(!al_get_config_value(config, "", "Exist"))
        cout << al_get_config_value(config, "", "Exist") << endl;
        logger.log("Configuration file is malformed. Recreating.");

    cout << "Test." << endl;

The "Test" never gets printed. If I comment out the second line of the if statement it does though.

Why does this cause cout to fail?

Member #358
May 2000

Run it in a debugger and see why that statement is not reached.

"Either help out or stop whining" - Evert

Dizzy Egg
Member #10,824
March 2009

If I had to guess, which I do, I would say:


is causing the issue....what happens in logger.log()?

Please check out my songs:

Go to: