code only compile in dinamically mode



  • Hi guys. I am trying to compile my program but i only can compile in dinamic mode.
    When i do build static i got this:

    Code
    void MainWindow::lookupServers()
    {
    // Create a DNS lookup.
    QDnsLookup *dns = new QDnsLookup(this);
    connect(dns, SIGNAL(finished()),
    this, SLOT(handleServers()));

    // Find the XMPP servers for gmail.com
    dns->setType(QDnsLookup::SRV);
    dns->setName("_xmpp-client._tcp.gmail.com");
    dns->lookup();
    

    }
    Error; crash tool:
    Starting C:\Qt\Qt5.2.0\Tools\QtCreator\bin\build-qdnslookup-Unnamed-Debug\debug\qdnslookup.exe...
    The program has unexpectedly finished.
    C:\Qt\Qt5.2.0\Tools\QtCreator\bin\build-qdnslookup-Unnamed-Debug\debug\qdnslookup.exe crashed

    So maybe my built is wrong, any suggestion is good received


  • Lifetime Qt Champion

    Hi,

    Run your application through the debugger. You are likely accessing an invalid pointer somewhere.



  • i tried mode release worked fine


  • Lifetime Qt Champion

    That doesn't mean you don't have a bug somewhere. Please, run your debug build with the debugger on. That should help pin-point the problem.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.