Thanks, run independently was one of my options but like you said the transferring the data between take time, I still want it in the same project, now I am trying to package my libtorh code as a dll than let my origin project include it, I hope it works. Otherwise we can only applied shared memory like socket or named pipe