c++ - Using gRPC with MFC in a shared DLL gives memory leaks -
i integrating grpc in windows application uses third party libraries need mfc in shared dll vs2015.
build multi-threaded dll (/md) version of libprotobuf.lib
, grpc++.lib
, helloworld
example.
when set use standard windows libraries
helloworld
server grpc example works fine.
when set use mfc in shared dll
helloworld
server grpc example works, exits lot of memory leaks.
dumping objects -> {1475} normal block @ 0x00000259f0cb9070, 22 bytes long. data: <g r p c _ t r > 47 00 52 00 50 00 43 00 5f 00 54 00 52 00 41 00 {1398} normal block @ 0x00000259f0cb7d70, 30 bytes long. data: <g r p c _ v e r > 47 00 52 00 50 00 43 00 5f 00 56 00 45 00 52 00 ...
also running piece of code, not start server, gives memory leaks. looks static allocation in grpc code , not runtime issue.
int main(int argc, char** argv) { //runserver(); return 0; }
is grpc+mfc combination possible?
Comments
Post a Comment