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

utelle <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
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.
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.