diff -r c084286672be -r 15018f1726c7 persistentstorage/sql/SRC/Server/Compact/SqlCompact.cpp --- a/persistentstorage/sql/SRC/Server/Compact/SqlCompact.cpp Tue Jan 26 13:16:24 2010 +0200 +++ b/persistentstorage/sql/SRC/Server/Compact/SqlCompact.cpp Fri Mar 19 10:00:55 2010 +0200 @@ -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 } } }