I have a very odd problem that I'm not sure i can explaining clearly, anyway i'll try.
I'm using openCL in a program that does some elaboration on a video. in particular i am using this C# wrapper:
in this program i have a kernel that is executed once for every frame. after the elaboration of some frames (100-200) i get an error. the error is different almost every time i run the program (invalid context, nullReferenceException, AccessViolationException and most frequently FatalExecutionEngineError).
I think there might be some memory corruption issue considering this random behaviour. Here comes the strange part: the problem appears only when the resolution of the video is under a certain value (110000-115000 pixels). the only thing related to video resolution is the size of the buffers that i use.
what should i try to resolve this problem? let me know if you need any other information. thanks
I tried reinstalling Visual studio and .net framework but that didn't resolve