What did you guys finally do? On Tuesday, October 7, 2014 at 1:32:38 PM UTC-7 [email protected] wrote:
> > Comment #5 on issue 287 by [email protected]: Memory leaks reported > after ShutdownProtobufLibrary and program exit. > https://code.google.com/p/protobuf/issues/detail?id=287 > > I have same problem. I think ShutdownProtobufLibrary() is not perfect. > > int main() > { > ::_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); > > // Let GPB generate global objects. > // It doesn't need to call any functions. > .... > > google::protobuf::ShutdownProtobufLibrary(); > > // Memory should be clean at this point > > ::_CrtDumpMemoryLeaks(); > > return 0; > } > > > -- > You received this message because this project is configured to send all > issue notifications to this address. > You may adjust your notification preferences at: > https://code.google.com/hosting/settings > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/469963a7-60df-451f-80fc-2facbeef3c87n%40googlegroups.com.
