Re: Issue dynamically reloading libprotobuf?

2008-09-23 Thread Kenton Varda
Unfortunately, the protocol buffer library was designed in an environment where all code is statically-linked, and it probably won't work so well with dynamically-loaded code. The problem is that at start-up, descriptors are built for each compiled-in message type and registered in a singleton reg

Issue dynamically reloading libprotobuf?

2008-09-22 Thread aaronedsinger
Hi. I have an plug-in based application under Linux that dynamically links in libprotobuf.so. The app's plug-ins also link in the library. This works fine when a plug-in is first dynamically loaded via dl_open(). However, if the plug-in is removed dl_close() and then re- opened, I get the followin