Program: bbtk
Module: $RCSfile: bbtkPackage.cxx,v $
Language: C++
- Date: $Date: 2009/05/28 08:26:59 $
- Version: $Revision: 1.27 $
+ Date: $Date: 2009/05/28 12:18:51 $
+ Version: $Revision: 1.28 $
=========================================================================*/
/* ---------------------------------------------------------------------
*\brief Class bbtk::Package : registers black boxes descriptors and is able to create instances of the black boxes registered.
*/
#include "bbtkPackage.h"
+#include "bbtkComplexBlackBoxDescriptor.h"
#include "bbtkMessageManager.h"
#include "bbtkConfigurationFile.h"
#include <fstream>
}
#if defined(MACOSX)
- if (dyn==0) PackageReleaseBlackBoxDescriptorInternal(pack,*descname);
+ BlackBoxDescriptor::Pointer desc = pack.lock()->mBlackBoxMap[*descname];
+ if ( (dyn==0) || (boost::dynamic_pointer_cast<ComplexBlackBoxDescriptor>(desc)) )
+ PackageReleaseBlackBoxDescriptorInternal(pack,*descname);
#else
PackageReleaseBlackBoxDescriptorInternal(pack,*descname);
#endif