[Interest] Multiple plugin versions behavior with QPluginLoader

BOUCARD Olivier boucard_olivier at yahoo.fr
Tue Oct 1 12:37:29 CEST 2013


I will answer myself.
I was not sure how OSes handle shared libraries.
So I've made a little test, as describe in my previous example.
And it turns out that apparently, under Linux, you can run an application multiple times with different plugin versions in each instance.

Olivier




>________________________________
> De : BOUCARD Olivier <boucard_olivier at yahoo.fr>
>À : "<interest at qt-project.org>" <interest at qt-project.org> 
>Envoyé le : Lundi 30 septembre 2013 18h58
>Objet : [Interest] Multiple plugin versions behavior with QPluginLoader
> 
>
>
>Hi guys,
>
>
>I just need some clarification on how QPluginLoader behaves.
>
>
>Let say I have an application X which load plugins using QPluginLoader.
>I have a plugin MyPlugin in two different versions stored in two different folders A and B.
>I first start an instance of X using MyPlugin from folder A.
>Then I start another instance of X using MyPlugin from folder B.
>
>
>What happen in this case? Will the second instance use MyPlugin from A or B?
>Is this behavior the same on all platform?
>
>
>Thanks,
>
>
>Olivier
>_______________________________________________
>Interest mailing list
>Interest at qt-project.org
>http://lists.qt-project.org/mailman/listinfo/interest
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131001/3921784a/attachment.html>


More information about the Interest mailing list