Boost logo

Boost :

From: Ullrich Koethe (koethe_at_[hidden])
Date: 2000-12-11 09:40:47


David Abrahams wrote:
>
> ----- Original Message -----
> From: "Ullrich Koethe" <koethe_at_[hidden]>
>
> > Suppose I've linked module "depmodule.so" against module
> > "sharedmodule.so". Then both modules share the variable "name_holder"
> > defined in the unnamed namespace of module_builder.cpp. This variable is
> > set when module "shared" is loaded into Python. When I later try to load
> > module "dep", "dep" wants to set this variable again, and the assertion
> > fires.
>
> But, at least in the release version, when module_builder is destroyed it
> resets name_holder so there should be no issue unless both module_builders
> exist at the same time.
>

Yes, you are right. In the release version, it works with the assertion
in place.

Ulli

-- 
 ________________________________________________________________
|                                                                |
| Ullrich Koethe  Universität Hamburg / University of Hamburg    |
|                 FB Informatik / Dept. of Computer Science      |
|                 AB Kognitive Systeme / Cognitive Systems Group |
|                                                                |
| Phone: +49 (0)40 42883-2573                Vogt-Koelln-Str. 30 |
| Fax:   +49 (0)40 42883-2572                D - 22527 Hamburg   |
| Email: u.koethe_at_[hidden]               Germany             |
|        koethe_at_[hidden]                        |
| WWW:   http://kogs-www.informatik.uni-hamburg.de/~koethe/      |
|________________________________________________________________|

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk