Hey hey,

I'm writing one program with calcOpticalFlowPyrLK, but with 2 cams. When I run the code for just one of them it's OK, but wen try to run the code on other thread it trow exception...

the code:

...
Med Cam0; //structure for data
Cam0.ch=0; //cam number : 0,1,2,,,
Cam0.result=(int*)malloc(sizeof(int));