<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi.<br>
<br>
I'm testing the David suggestions to keep a list of loaded dynamic
libraries (i.e. plugins), and the currently loaded.<br>
I declared:<br>
<blockquote><tt>public:<br>
    static std::string _currentlyLoading; <br>
  </tt></blockquote>
on RunTimeLibraryLoader.hxx. Is initialized on RunTimeLibraryLoader.cxx
as:<br>
<blockquote><tt>std::string
RunTimeLibraryLoader::_currentlyLoading=std::string();</tt><br>
</blockquote>
Is used it on virtual RunTimeLibraryLoader::FullyLoadLibrary, which is
called from virtual RunTimeLibraryLoader::LoadLibrariesFromPath, which
is called from virtual RunTimeLibraryLoader::Load. <br>
For ladspa plugins loadings (calling Load() from a derived class) it
works OK. But on AutomaticRunTimeProcessingLibraryLoader (which is on
RunTimeProcessingLibraryLoader.cxx, instantiates a derived class from
RunTimeLibraryLoader as an object, and call the Load() from there)
gaves me a segmentation fault, like if the static variable were not
defined. Furthermore, trying to access directly
RunTimeLibraryLoader::_currentlyLoading (for instance:
RunTimeLibraryLoader::_currentlyLoading="testing";) is the same.<br>
<br>
TraceBack:<br>
<tt>    #0: std::string::asign       /usr/lib/libstdc++.so.6<br>
    #1: std::string::operator=   /usr/lib/libstdc++.so.6<br>
    #2: AutomaticRunTimeProcessingLibraryLoader   (the above
assignation _currentlyLoading="testing")<br>
</tt><br>
AutomaticRun..... is instantiated as a static object. Could be that the
problem? I tried defining the variable as extern, without luck...<br>
<br>
This is making me mad... :-/ The linker doesn't says anything when
compiling...<br>
<br>
Any clue?<br>
<br>
<br>
Regards,<br>
Natanael.<br>
</body>
</html>