fixed error reporting in GPU module (exceptions in destructors, etc)

This commit is contained in:
Anatoly Baksheev
2010-11-15 16:22:52 +00:00
parent d7d0754f38
commit f2df784830
6 changed files with 134 additions and 115 deletions

View File

@@ -527,6 +527,9 @@ CV_IMPL const char* cvErrorStr( int status )
case CV_StsNotImplemented : return "The function/feature is not implemented";
case CV_StsBadMemBlock : return "Memory block has been corrupted";
case CV_StsAssert : return "Assertion failed";
case CV_GpuNotSupported : return "No GPU support";
case CV_GpuApiCallError : return "GPU API error";
case CV_GpuNppCallError : return "NPP API error";
};
sprintf(buf, "Unknown %s code %d", status >= 0 ? "status":"error", status);