Hi Ivan,
I'm pretty torn by this, because there are some people who absolutely insist
that globals should not be cleaned up at shutdown, because it could cause
still-running background threads that are using those objects to crash.
 I've argued that those threads should be cleaned up before exiting, but not
everyone agrees with me.

But, your problem clearly needs to be fixed.  So, I'm going to try to find a
solution.

See also issue 54:
http://code.google.com/p/protobuf/issues/detail?id=54

The patch contributed there might work for you in the meantime.

On Wed, Feb 25, 2009 at 4:03 AM, Ivan Kharin <korsar.ak...@gmail.com> wrote:

>
> Hi all!
>
> I'm trying to use protobuf in my project (photoshop plug-in), and
> encountered a problem:
>
> my DLL module is loaded/unloaded by host (many times).
>
> source code generated by protoc contains many
> XXX_descriptor_, XXX_reflection_, XXX::default_instance_ pointers
> and no function for cleanup used memory.
>
> This leads to memory leaks/heap fragmentation.
>
>
> --
> Ivan Kharin
>
>
> >
>

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

Reply via email to