[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Preloading plugin so file was changed to work only for root object.
Change-Id: If0b045e122e3d65ed3c3560499dc969304a181ca
{
LogDebug("LoadFromFile" << fileName);
- LogDebug("Loading plugin: " << fileName);
-
void *dllHandle;
- dllHandle = dlopen(fileName.c_str(), RTLD_NOW);
+ dllHandle = dlopen(fileName.c_str(), RTLD_LAZY);
+
+ LogDebug("dlopen() done!");
if (dllHandle == NULL) {
LogError(
FOREACH(it, pluginList)
{
PluginModelPtr& pluginModel = *it;
+
+ if (!pluginModel->LibraryDependencies.Get()->empty())
+ {
+ // Only Root Object
+ continue;
+ }
+
PluginPtr pluginLib = pluginModel->LibraryInstance.Get();
if (!pluginLib)