Hello maybe somebody can enlighten me on why my software is crashing.

I switched over to OpenCL 1.2 (AMD's implementation). When I call the new clCreateImage(...) function the software hangs...then crashes. I have no idea why whatsoever. With my debugger i noticed that it calls this function then looks into the OpenCL.dll file (the one i got from AMD v1.2) and calls clCreateImage3D. I specified in the image descriptor to use image2D. I am not sure if this is the issue. The software was working before I switched over to OpenCL v1.2 and was using clCreateImage2D. I'll post the applicable code below.

Thanks in advance for all your help,
Julian

Code :
    //image format
    cl_image_format image_format;
    image_format.image_channel_order = CL_RGBA;
    image_format.image_channel_data_type = CL_FLOAT;
 
    //OPENCL 1.2
    //image descriptor (for opencl v1.2)
    cl_image_desc image_desc;
    image_desc.image_type = CL_MEM_OBJECT_IMAGE2D;
    image_desc.image_width = width;
    image_desc.image_height = height;
    image_desc.image_array_size = 1;
    image_desc.image_row_pitch = 0;
    image_desc.image_slice_pitch = 0;
    image_desc.num_mip_levels = 0;
    image_desc.num_samples = 0;
    image_desc.buffer = NULL;
 
    //OPENCL 1.2
    mem_image = clCreateImage(context, CL_MEM_WRITE_ONLY, &image_format, &image_desc, NULL, &error);
    //--- doesn't make it past here ---
    //OPENCL 1.1 (what I used to call) mem_image = clCreateImage2D(context, CL_MEM_WRITE_ONLY, &image_format, width, height, 0, NULL, &error);