From: stephan b. <st...@s1...> - 2005-03-12 14:33:02
|
i realized this morning: One of the reasons that the factory registrations works at all is because anonymous namespaces create per-complication-unit copies of the factory registration code. What this means is that some factories may be registered from multiple places: the main app and arbitrary DLLs. If we deregister a factory when a sentry destructs then we might remove a factory which has been registered multiple times, and therefor should not be removed. The obvious "solution" would be to implement factory registration tracking of some sort: track which sentry registers which factory. i'm not at all certain how feasible this is, nor whether it would actually solve the problem, though. -- ----- st...@s1... http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts |