persistentstorage/sql/SRC/Server/Compact/SqlCompact.cpp
branchCompilerCompatibility
changeset 9 54410521b707
parent 6 5ffdb8f2067f
child 11 667e88a979d7
--- a/persistentstorage/sql/SRC/Server/Compact/SqlCompact.cpp	Mon Mar 08 21:45:06 2010 +0000
+++ b/persistentstorage/sql/SRC/Server/Compact/SqlCompact.cpp	Sun Mar 14 13:16:08 2010 +0000
@@ -173,7 +173,14 @@
 			{
 			if(entry->Release() == 0)
 				{
-				iEntries.Remove(idx);
+				iEntries.Remove(idx);			
+#ifdef _DEBUG
+//This is used prevent the failure of the resource allocation checking for debug mode. 
+				if(iEntries.Count() == 0)
+				    {
+                    iEntries.Reset();
+				    }
+#endif  
 				}
 			}
 		}