Non blocking call to ofSystem()?

Hi,
I’d like to start another independent process on windows. Can I somehow do it non blocking with ofSystem("…")? The & seems not to work on windows.

Hi! What if you call ofSystem from a different thread? You can look at ofThread. There’s a few thread examples.

Yes, this would be an option. But I’d prefer to start it without a thread. If found that on windows one option is to use CreateProcess() or ShellExecute() where ShellExecute() is simpler to use and fits my needs at the moment.

1 Like