Frio

Using OpenCL beta from a .NET application causes a memory access violation exception

Discussion created by Frio on Aug 30, 2009
Latest reply on Jan 19, 2010 by omkaranathan

Hello,

I am trying to experiment with the beta OpenCL SDK calling OpenCL from a C# .NET managed application.

Any call to the OpenCL API causes a memory access violation exception, both when calling OpenCL directly from C# or when creating a native dll and calling the OpenCL API from a function in the native dll. 

I added a C# console application project to your OpenCLSamplesVS solution and created manual bindings to the OpenCL dll, the result is always a memory exception reading location 0x00000000.

Cheers,

Frio

Outcomes