Problem with Command queue

Hi everybody :smiley: ,

I have a problem with a command queue when I use the clEnqueueNDRangeKernel function. The function returns a CL_SUCCESS code when using the Debugger Mode, but when launching the exe, I have an access reading location error especially on the adress of the commandqueue which is created earlier. I am using OpenCL on VisualC++ 5, with XP 32bits OS.

Thanks for your solutions,

Gregory