As long as you don't have background threads that might be operating on
protobufs when exit() is called, that should be fine.  The shutdown code
just deletes objects; nothing else.

On Wed, Mar 31, 2010 at 6:02 PM, Evan Jones <[email protected]> wrote:

> On Mar 31, 2010, at 18:28 , Kenton Varda wrote:
>
>> Be sure to call ShutdownProtobufLibrary() to clean up all descriptors and
>> such on exit:
>>
>
> That makes my unit tests happy. Thanks!
>
> I may add a hack to my code which does something like using atexit to call
> this automatically when running under valgrind. I'm assuming that won't
> cause any weird failures, but if there might be some problem that I haven't
> considered, please let me know.
>
> Evan
>
> --
>
> Evan Jones
> http://evanjones.ca/
>
> --
> 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]<protobuf%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
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