[Qt-interest] Problem with unloading a plugin under Win7 and QtNetwork

Thiago Macieira thiago at kde.org
Thu Jan 13 01:24:15 CET 2011


On Wednesday, 12 de January de 2011 23:57:52 Michael Ernst | Sobex wrote:
> Hi,
> 
> I wrote an update service which is loaded as plug-in. It downloads Files via
> HTTP and uses QNetworkAccessManager for the network requests. The files are
> stored in a temporary directory. After that the plug-in is unloaded so that
> it could be updated as well - that is the theory. There is no problem under
> Windows Xp, but Windows 7 shows some strange behavior. After calling the
> unload function of QPluginLoader the program is stuck and the call does not
> return. That kind of behavior of QPluginLoader is completely unknown to me.
> There is another strange phenomenon. This problem only occurs on machines
> without an IDE (I used VS 2008 / 32 bit to compile the program).

Don't unload.

This is probably the DNS resolver threads that are still running.

Unloading of plugins is, unfortunately, a broken concept. Take my advice: 
don't unload.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110112/6576185f/attachment.bin 


More information about the Qt-interest-old mailing list