Making thread run after program exits Topic is solved
Making thread run after program exits
Hi. How can I make a wxThread continue to run even after my program terminates? Basically, at the end of my program, I upload a file that gets created, but I don't want to wait for it on the screen, so I just start the thread and my program ends. But, so does the thread. I'm trying to make the thread continue on.
A thread can't run after the program exists. A thread runs in the context of it's process in your case the application. End the process and all threads are terminated. It's a windows thing, did you mentioned your os?
Anyway under windows the only solution for you is to start a process in your app to upload the file. However since Vista you need the users permission for that.
Anyway under windows the only solution for you is to start a process in your app to upload the file. However since Vista you need the users permission for that.
Sounds like a setup for a troubled design.
It may be best to keep the application running. Use the taskbar to keep the process available.
What if the upload fails, or some other error that the user may need to handle occurs?
Also, as a user I would like to know whats going on; don't try to "hide" application activity from a user. You setting yourself up for a bad user experience.
It may be best to keep the application running. Use the taskbar to keep the process available.
What if the upload fails, or some other error that the user may need to handle occurs?
Also, as a user I would like to know whats going on; don't try to "hide" application activity from a user. You setting yourself up for a bad user experience.