I am beginner in VTK, and I am doing a project using both VTK and OpenCV. The code that I have written is complied well without any compiling error, all the variable are defined as global variable in in a class structure. Before running the line contacting renderWindowInteractor->Start();, I can read all OpenCV variables with correct values, but after that line, all the openCV variables are empty! I changed variables with pointers, hoping to work, but the same error message is appeared that the variable is empty! The problem can be ragarded to thread safe; but I don't know how to disable thread safely in VTK. Can someone tell me what is wrong and what is an efficient solution? Thanks