Hi forum,

I am allocating a memory buffer and getting error value -49 with the following command :

Code :
      errNum |= clSetKernelArg(clKernel,1, sizeof(cl_mem),trgBuffer);

While allocating the trgBuffer i am not getting any error and it means that the memory creation was successful.

Any hint to track the reason of the error?