]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add exception for memory leak
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 17 Dec 2007 19:19:53 +0000 (19:19 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 17 Dec 2007 19:19:53 +0000 (19:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@15601 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/exceptions.h

index 959cbb8e648c3e0514e026a4aa30480f68cc6d8b..17fc4dfc54a559929660b4e8d395cd2ed7a72ed6 100644 (file)
@@ -585,6 +585,17 @@ namespace StandardExceptions
                                    */
   DeclException0 (ExcOutOfMemory);
 
+                                  /**
+                                   * A memory handler reached a point
+                                   * where all allocated objects
+                                   * should have been released. Since
+                                   * this exception is thrown, some
+                                   * where still allocated.
+                                   */
+  DeclException1 (ExcMemoryLeak, int,
+                 << "Destroying memory handler while " << arg1
+                 << " objects are still allocated");
+  
                                   /**
                                    * An error occured reading or
                                    * writing a file.

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.