class_loader icon indicating copy to clipboard operation
class_loader copied to clipboard

usage of multiple static variables is discouraged

Open rhaschke opened this issue 9 years ago • 0 comments

I'm double-posting this issue, which shows up in pluginlib usage: https://github.com/ros/pluginlib/pull/37

Using static pluginlib ClassLoader defers lib unloading to program shutdown time. But as the order of static releases is undefined, the program might crash.

IMHO, class_loader shouldn't use a handful of unrelated static vars, but collect them within a singleton class, which is only freed when all loaded libs were unloaded.

rhaschke avatar Apr 03 '16 06:04 rhaschke