Re:Re: How to start a new process in background thread?

kipade <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
If so, there will be to much code to do, such as event sent and retrieve, synchronous, etc. I do not think this limitation was the best practice, because the users does not need to interact with the new process but only need its result mostly. Thanks, I think I should to find another non-wx way to do this. Thanks.



At 2023-12-03 19:15:11, "utelle" <[email protected]> wrote:

kipade schrieb am Sonntag, 3. Dezember 2023 um 10:26:16 UTC+1:


Hello, as the topic, I have to start a new process in non-mainthread. No matter I use wxProcess or wxExecute, it will be asserted with a message tells me that I can only use wxExecute in main thread. However, I could not find any solution to resolve this issue. Thanks.



As a workaround you could send an event from the background thread to the main thread, and the event handling method in the main thread then starts the new process.


--
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
---
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/f6ee2a11-a606-41df-9741-0277317e322an%40googlegroups.com.

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/24c133f8.118e.18c2fb89716.Coremail.kipade%40163.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.