Instancing object of user defined class under thread . C / C++ I have an issue when i am trying to define new object of user class in thread.