Skip to content

Commit

Permalink
* Catch strings as well as actual exceptions -- there are several places
Browse files Browse the repository at this point in the history
they can be thrown from
  • Loading branch information
cannam committed May 9, 2008
1 parent c9f902a commit da7c2de
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dssi-vst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,17 @@ DSSIVSTPluginInstance::DSSIVSTPluginInstance(std::string dllName,
delete m_controlPortsSaved; m_controlPortsSaved = 0;
delete m_audioIns; m_audioIns = 0;
delete m_audioOuts; m_audioOuts = 0;

} catch (std::string message) {
std::cerr << "DSSIVSTPluginInstance::DSSIVSTPluginInstance("
<< dllName << "): startup failed: " << message << std::endl;

m_ok = false;
delete m_plugin; m_plugin = 0;
delete m_controlPorts; m_controlPorts = 0;
delete m_controlPortsSaved; m_controlPortsSaved = 0;
delete m_audioIns; m_audioIns = 0;
delete m_audioOuts; m_audioOuts = 0;
}

std::cerr << "DSSIVSTPluginInstance::DSSIVSTPluginInstance(" << dllName << ") construction complete" << std::endl;
Expand Down

0 comments on commit da7c2de

Please sign in to comment.