Hi thanks for your reply I have stepped through the code with the debugger and it reports that the specified module could not be found This project succeeds if compiled in Release mode but not in Debug mode
Does anyone have clue about this? Thanks -----Original Message----- From: interest-bounces+graham.labdon=avalonsciences....@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences....@qt-project.org] On Behalf Of Bo Thorsen Sent: 23 July 2014 09:22 To: interest@qt-project.org Subject: Re: [Interest] Application Plugins Den 22-07-2014 17:09, Graham Labdon skrev: > Hi > I am developing a set of plugins for my Qt application using VS 2012 > When I created the project I selected Qt Library as the project type, but > when I load the library with QPluginLoader the 'instance' method failed. > I then created another VS project using the 'Qt Application' as the project > type and deleted main.cpp and using the VS properties manager I set the > configuration type to Dynamic library, Using this method the plugin is loaded > and behaves as expected. > I have compared the VS configuration properties and they are identical. > I have created a .pro file for both projects using VS and they are also > identical. > > I would be grateful if you could tell me the reason for this The only way I have found that it's possible to debug this is to singlestep through the Qt plugin loader code. One problem that I've seen multiple times in the Qt 4 (don't know if this is fixed in 5) is that if I have run the application in debug mode, the plugin system stores a list of known plugins in the config. So when I switched to debug, it still tries to load the debug plugin and that won't work. After deleting the file with the cache list, I could load the plugin. Sorry that I can't be of more help. Fire up the debugger :( Bo. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest