diff plugin/LADSPAPluginFactory.cpp @ 78:c983dda79f72

* Replace crash with warning when a transform could not be automatically re-run * More sensible default paths for Vamp plugin lookup (at least on Linux and OS/X) * A start to making the y coords for time value layers etc align * Set sensible y coords for text labels in time instant and value layers
author Chris Cannam
date Thu, 13 Apr 2006 18:29:10 +0000
parents 3086ff194ea0
children 45175d8c5dc5
line wrap: on
line diff
--- a/plugin/LADSPAPluginFactory.cpp	Wed Apr 12 09:59:40 2006 +0000
+++ b/plugin/LADSPAPluginFactory.cpp	Thu Apr 13 18:29:10 2006 +0000
@@ -323,6 +323,9 @@
 
 	m_instances.insert(instance);
 
+        std::cerr << "LADSPAPluginFactory::instantiatePlugin("
+                  << identifier.toStdString() << ": now have " << m_instances.size() << " instances" << std::endl;
+
 	return instance;
     }
 
@@ -351,16 +354,19 @@
 	QString itype, isoname, ilabel;
 	PluginIdentifier::parseIdentifier((*ii)->getIdentifier(), itype, isoname, ilabel);
 	if (isoname == soname) {
-//	    std::cerr << "LADSPAPluginFactory::releasePlugin: dll " << soname.toStdString() << " is still in use for plugin " << ilabel << std::endl;
+	    std::cerr << "LADSPAPluginFactory::releasePlugin: dll " << soname.toStdString() << " is still in use for plugin " << ilabel.toStdString() << std::endl;
 	    stillInUse = true;
 	    break;
 	}
     }
     
     if (!stillInUse) {
-//	std::cerr << "LADSPAPluginFactory::releasePlugin: dll " << soname.toStdString() << " no longer in use, unloading" << std::endl;
+	std::cerr << "LADSPAPluginFactory::releasePlugin: dll " << soname.toStdString() << " no longer in use, unloading" << std::endl;
 	unloadLibrary(soname);
     }
+
+    std::cerr << "LADSPAPluginFactory::releasePlugin("
+                  << identifier.toStdString() << ": now have " << m_instances.size() << " instances" << std::endl;
 }
 
 const LADSPA_Descriptor *