qt5base-lts/tests/auto/network/kernel
Mårten Nordheim e875c071ec QNetworkInformation: delete the instance as a post-routine
On Windows, on exit, the backend will deref (and then implicitly start
deletion of) a COM object. This object tries to communicate with an
object in another thread, though it seems this other thread quits before
the main thread in _most_ cases.

To get around this we move the deletion to earlier in the program. While
this is only reported as a Windows issue it makes for more consistent
behavior if all platforms behave the same.

Document and test that recreation of QNI works as expected after the
destruction (and recreation) of QCoreApplication.

Amends: 0875626e22

Fixes: QTBUG-92568
Pick-to: 6.1 6.1.0
Change-Id: Iffc07f38673019aa059efd4d64d2ad706a03f6fe
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2021-04-14 10:47:20 +02:00
..
qauthenticator Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdnslookup QDnsLookup - port to the new property system 2021-01-27 16:54:38 +01:00
qdnslookup_appless Remove the qmake project files 2021-01-07 15:32:28 +01:00
qhostaddress QHostAddress: prepare moving NetworkLayerProtocol from QAbstractSocket 2021-03-18 19:54:01 -08:00
qhostinfo Remove the qmake project files 2021-01-07 15:32:28 +01:00
qnetworkaddressentry Remove the qmake project files 2021-01-07 15:32:28 +01:00
qnetworkdatagram Remove the qmake project files 2021-01-07 15:32:28 +01:00
qnetworkinformation Long live QNetworkInformation 2021-01-20 16:21:28 +01:00
qnetworkinformation_appless QNetworkInformation: delete the instance as a post-routine 2021-04-14 10:47:20 +02:00
qnetworkinterface Remove the qmake project files 2021-01-07 15:32:28 +01:00
qnetworkproxy Remove the qmake project files 2021-01-07 15:32:28 +01:00
qnetworkproxyfactory Fix some warnings about virtual/override 2021-02-23 15:15:45 +01:00
CMakeLists.txt QNetworkInformation: delete the instance as a post-routine 2021-04-14 10:47:20 +02:00