Matthew,

Thanks!  Looks like I should RTFM.

:-(

Ciao,

Peter K.

On Sep 30, 12:12 pm, Michael Matthews <heav...@gmail.com> wrote:
> I'm using VC++ 8.0+ with protobuf 2.2.0 and as long as I add the call
> toShutdownProtobufLibrary() before
> exiting I don't see any memory leaks.
>
> Michael Matthews
>
> On Wed, Sep 30, 2009 at 8:45 AM, Peter K. <koots...@gmail.com> wrote:
>
> > Hi All,
>
> > I'm using protocol buffers under Visual C++ and most things are going
> > swimmingly (i.e. well).
>
> > One problem we've noticed is that, when our DLL unloads, VC++ detects
> > many memory leaks.
>
> > The call stack appears to indicate that it is because many of the
> > default instances of messages, e.g. tReturn, have calls to "new" for
> > them, but do not have subsequent "delete" calls.
>
> > The generated code contains lines like:
>
> > tReturn::default_instance_ = new tReturn();
>
> > without anything showing up later with "delete
> > tReturn::default_instance_ " or code to that effect.
>
> > Should I be worried? Is there something I'm not doing?
>
> > Any and all pointers appreciated! (Except NULLs!).
>
> > Ciao,
>
> > Peter K.
--~--~---------~--~----~------------~-------~--~----~
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