UWVA#60142 Betere foutmelding (in plaats van crash) als CreateEPlotSection bronfile niet bestaat
svn path=/Slnkdwf/trunk/; revision=44860
This commit is contained in:
@@ -142,6 +142,12 @@ STDMETHODIMP CDWFFile::CreateEPlotSection(BSTR W2DPath, VARIANT EPlotStream, LON
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
}
|
||||
catch (DWFException& ex)
|
||||
{
|
||||
CString err;
|
||||
err.Format("%ls\n%ls\n%s\n%ls(%d)", ex.type(), ex.message(), ex.function(), ex.file(), ex.line());
|
||||
return myAtlReportError(GetObjectCLSID(), "\nCDWFFile::CreateEPlotSection('%s')\n%s", CString(W2DPath), err);
|
||||
}
|
||||
catch (CString& e)
|
||||
{
|
||||
return myAtlReportError (GetObjectCLSID(), e);
|
||||
|
||||
Reference in New Issue
Block a user