i want use abs function but every time i use it a type of exception occur !! once this exception :
Exception thrown: read access violation.
on below code in ocl.cpp line 4 :
bool useOpenCL()
{
CoreTLSData* data = getCoreTlsData().get();
if( data->useOpenCL < 0 )
{
try
{
data->useOpenCL = (int)haveOpenCL() && Device::getDefault().ptr() && Device::getDefault().available();
}
catch (...)
{
data->useOpenCL = 0;
}
}
return data->useOpenCL > 0;
}
other this :
A heap has been corrupted .
on below code in alloc.cpp line 3:
void* fastMalloc( size_t size )
{
uchar* udata = (uchar*)malloc(size + sizeof(void*) + CV_MALLOC_ALIGN);
if(!udata)
return OutOfMemoryError(size);
uchar** adata = alignPtr((uchar**)udata + 1, CV_MALLOC_ALIGN);
adata[-1] = udata;
return adata;
}
another exception :
A heap has been corrupted (ntdll.dll).
on opencl_core.cpp line 110 : handle = LoadLibraryA(path);
I am totally confused please help.