[Qt-interest] dll problem

Evan Teran eteran at alum.rit.edu
Sun Dec 7 14:15:29 CET 2008


I have a QT application which makes use of many plugins which I have
written. The plugins do however need access to objects which are found
in the primary executable. On linux, I accomplished this by adding the
-rdynamic linker flag.

Recently, I've tried to port my application to windows but have hit a
stumbling block. The plugins load fine, but it seems that every time
they try access a variable which is part of my main executable (in this
case it is a QWidget * which is to be the parent of a dialog that the
plugin would like to display) I get an access violation.

Is there something special I need to do to make this work? Anyone have
any experience with this problem.

I am using Visual Studio 2008 with QT 4.4.0.

Thank you



More information about the Qt-interest-old mailing list