]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkPackage.h
*** empty log message ***
[bbtk.git] / kernel / src / bbtkPackage.h
index 9a1c46a9e43b0fa42b8f99246598077d3d1e9c01..f2876752077a213a472bfd495b8b7c5b48c78d24 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkPackage.h,v $
   Language:  C++
-  Date:      $Date: 2009/01/13 08:45:27 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2009/05/19 10:19:23 $
+  Version:   $Revision: 1.13 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -64,6 +64,13 @@ namespace bbtk
                                            const std::string& pkgname,
                                            const std::string& path);
 
+    /// NOTE : All the static methods below for package destruction
+    /// are not member because they can cause the package death 
+    /// and thus close the dynamic library from which it has been loaded.
+    /// If the dynamic lib which provides a function is closed while 
+    /// in the function: imagine the crash !
+    /// The principal method is Release
+
     /// UnLoads the package dynamic library 
     /// (if any and if the package is released)
     /// If doit == false then does not do it but just 
@@ -80,7 +87,8 @@ namespace bbtk
 
     /// "Releases" the package
     /// Signals the package that it can free its descriptors 
-    /// if they are no more used and frees and unloads the package 
+    /// if they are no more used 
+    /// then frees and unloads the package 
     /// if it is no more used (released)
     /// Note : Any non-weak pointer on the package must have been freed
     static void Release(Package::WeakPointer p);