Jason Hsueh wrote:
> Are you sure the leak is due to persistCacheToFile()? 

>> Does it due to memory fragmentation ? It's very strange because this
>> method 'FileManager::persistCacheToFile()'[3] should delete all its
>> memory when it returns. Should I use a other memory allocater like
>> tcmalloc ?

I find valgrind to be an invaluable tool for tracking down these
kind of problems (and many others).

http://valgrind.org/

--
Neil

--

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.


Reply via email to