while debuggin I check the values.After new the array is filled with "ì" values, but after the first iteration the array becomes an empty array. Actually if I use this statement
new function return a pointer to the memory allocated and the type of the pointer is the type of that memory.
so eye_frame and scene_frame should be unsigned char *.
ur code works fine and nothing wrong about it and if you wanna see the result of eye_frame and scene_frame in output, you have to type cast it to int as you know i guess charecter with ascii code lower than 32 are not printable....
i wrote the code for you and compile it and it works fine: