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

kipade <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Oh, that's might be no better solution. And, I pass a wxProcess to wxExecute, and check it with wxProcess::Exists in a loop, it's a little ugly, but it works.


At 2023-12-03 22:05:25, "Carsten Arnholm" <[email protected]> wrote:
>On 2023-12-03 14:29, kipade wrote:
>> but if use system, you can't capture the stdout and stdin, right?
>
>AFAIK, that is correct, yes. So what I do is kind of limited, but the 
>applications I run this way are legacy ones without much useful output. 
>In this case the thread's job is just to wait for system() to complete 
>and read results from files. This simple setup doesn't work for all use 
>cases, agreed.
>
>-- 
>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/4eabb9b06f025ca37a91883c734261a2%40arnholm.org.

-- 
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/5124a586.501d.18c343473eb.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.