Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-122578

Networkmanager reply never returns in Release builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.6.2
    • Network
    • None
    • All

      I have a qt cmake project and use qt creator.

      In Debug builds everything works fine, i receive the data from my api. But when i set the build type to "Release" then the networkmanager just freezes and never returns a reply:

      auto m_manager = new QNetworkAccessManager(this);

      QNetworkReply* reply = m_manager->post(request, postData);

      connect(reply, &QNetworkReply::finished, this, [=,this]()

      {         // In Release builds it will never be called     // In Debug builds this works fine }

      );

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            manordheim Mårten Nordheim
            trittler_s Sven Trittler
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes