multithreading - windows universal app passing ref class object to a native c++ thread -
i'm trying use c++ native threads in windows universal app(windows 10)
classname^obj=ref new classname(); std::thread t1(function,obj);//or thread t1(function,std::ref(obj));// t1.detach(); -------------------------------- function(classname^x){ //do on x }
an exception occurs , error : x information not available,
what correct form passing ref obj thread?
Comments
Post a Comment