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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -