[Qt-interest] dll problem
Boudewijn Rempt
boud at valdyas.org
Sun Dec 7 14:23:01 CET 2008
On Sunday 07 December 2008, Evan Teran wrote:
> 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.
I'm not sure how relevant this is, but what I do is to make all the code of my
main app in a dll (that exports the relevant classes) and only have a really
small main app that loads that dll.
--
Boudewijn Rempt | http://www.valdyas.org
More information about the Qt-interest-old
mailing list