Index: /trunk/FACT++/src/EventBuilderWrapper.h
===================================================================
--- /trunk/FACT++/src/EventBuilderWrapper.h	(revision 10840)
+++ /trunk/FACT++/src/EventBuilderWrapper.h	(revision 10841)
@@ -70,8 +70,10 @@
     void SetMaxMemory(unsigned int mb) const
     {
-        // FIXME:
-        // Find out if this can be called all the time or only
-        // when the thread is stopped. Under which circumstances
-        // is teh call allowed?
+        if (mb*1000000<GetUsedMemory())
+        {
+            // fMsg.Warn("...");
+            return;
+        }
+
         g_maxMem = mb*1000000;
     }
