[Debtags-devel] using libdebtags in libraries
Benjamin Mesing
bensmail@gmx.net
Thu, 02 Sep 2004 15:57:19 +0200
Hello,
what will happen if I use libdebtags in to different libraries which are
dynamically loaded at runtime (i.e. plugins). Each of them calling the
Environment::init() function?
I have no experiences in working with libraries so I would appreciate
all the tips I can get. There are two things to consider:
* Will there be two instances of the static Environment::instance
(resulting in a lot of wasted memory) and if so could it be
prevented without the libraries knowing each other (and also the
main program knowing nothing about the libraries).
* Will calling the init function do harm (I think not as it checks
for existence of the instance variable).
Hope you can help me.
Greetings Ben