Important: Please read the Qt Code of Conduct -

strange behavior (Exception)

  • Hi at all,
    I'm going crazy to understand the real cause.


    This message appear when I step over the code

    qDebug() << "--- show ---";   // <-- Exception here !!

    but sometimes appear at the follow line;

    qDebug() << "--- show ---";
    show();                      // <-- Exception here !!

    I wrote a program that send an email.
    On standalone program works correctly, when I put these classes on my primary project I got strange behavior like this, and the email it is not sent. On debug output I read this log message. QSslSocket::connectToHostEncrypted: TLS initialization failed

    to isolate the problem what approach do you adopt in these cases?

  • Lifetime Qt Champion

    @addebito Did you try to debug?
    Please provide stack trace after crash.

  • Moderators

    @addebito said in strange behavior (Exception): QSslSocket::connectToHostEncrypted: TLS initialization failed

    This means your program can't find the OpenSSL DLLs.

Log in to reply