Updates:
Status: WorkingAsIntended
Cc: [email protected]
Comment #1 on issue 444 by [email protected]: ShutdownProtobufLibrary()
have to be called from each binaries, not only once.
http://code.google.com/p/protobuf/issues/detail?id=444
I think static link another library to a dynamic library is quite platform
dependent. From the behavior you noted, it seemed that the dll just linked
the code but did not export any symbols; all the global variables defined
in the protobuf library were duplicated.
I don't see a way to have a general function for the shutdown, because the
libprotobuf is not exported in the dll. The only way is to propagate the
shut down function (export another function which is delegated to the
protobuf shutdown) in the dll. You can then call the exported function
before your main exits.
Or maybe just do not static the protobuf library in the dll.
--
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.