Ok, but in such case ```CV_DbgAssert(clGetPlatformInfo(handle, CL_PLATFORM_VENDOR, sizeof(buf), buf, &len) == CL_SUCCESS);``` does nothing in Release mode. Another solution is to create another private ```CV_OclDbgAssert(statement)``` in ocl.cpp which doesn't throw an exception in Release mode, but execute ```statements``` in Debug. What do you think about it?