
Originally Posted by
jpn
"MyThread t" goes out of scope and gets destructed according to normal C++ rules immediately in the end of MainWindowImpl::on_button_clicked(). You might want to allocate it on the heap instead.
Thanks, it worked.
If anybody wants to now exactly how i did it: i've replaced:
MyThread t;
t.start();
MyThread t;
t.start();
To copy to clipboard, switch view to plain text mode
with
MyThread *t=new MyThread;
t->start();
MyThread *t=new MyThread;
t->start();
To copy to clipboard, switch view to plain text mode
Bookmarks