AW: Early intervention in the startup of an wxApp. Possible?
Joerg Toellner
joerg at tjs.de
Fri Oct 27 04:37:08 PDT 2006
Hi Vadim,
Yes, i havent blamed wx for that. But if the OS loader does this, then even
the best framework (like wx) have no chance to offer an earlier hook.
And yes, you are right. Loading it dynamically is really no solution for a
library like xerces with hundreds of functions.
There is also a linker option in MSVC /delayload which loads the dlls only
when needed at runtime. But this also dont work with xerces because there
are some constraints that wont work with delayload, and xerces needs/use
some of them.
So thanks anyway for your answer. I have to rethink what to do (we already
use a general helper app for updating some of our exes - maybe we have to
extend this app for doing such dll things too).
Thanks all again
Joerg
-----Ursprüngliche Nachricht-----
Von: Vadim Zeitlin [mailto:vadim at wxwindows.org]
Gesendet: Freitag, 27. Oktober 2006 13:21
An: wx-users at lists.wxwidgets.org
Betreff: Re: Early intervention in the startup of an wxApp. Possible?
On Fri, 27 Oct 2006 12:47:45 +0200 Joerg Toellner <toellner at oss-gmbh.de>
wrote:
JT> The problem is, that when i have the chance to check/update the .dll
JT> the .dll is already in use (or if the .dll is not present my app
JT> dont startup anymore).
This has really nothing to do with wx or its startup. If you explicitly
link to xerces.dll, it's loaded by the OS loader and there is no way to
replace it while your application is running. You need to either do the
update from a separate application or load the DLL during run-time (e.g.
using wxDynamicLibrary) which is not very convenient for a DLL probably
containing hundreds of functions.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
More information about the wx-users
mailing list