Hello I discovered some memory leaks. Here is the fix The main one was is that if a hash collision occurs new cache entry overwrites the old one but the old one wasn't freed. When loading a big file it was leaking huge amounts of memory -- Regards Vladimir 'phcoder' Serbinenko