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?


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

Dizzy Egg

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


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

Thread #613803. Printed from Allegro.cc