[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Process.Wait not behaving as expected


On 1/3/26 3:27 PM, Benoît Minisini wrote:
Le 03/01/2026 à 21:20, Lee a écrit :
On 1/3/26 2:49 PM, Benoît Minisini wrote:
'Process.Wait(0)' is the same thing as 'Process.Wait()'. It waits until the process ends.

Oh! Well I'd better not use that as I do not want the application to be unresponsive while the server is running.

Thank you, Benoît.



If you write a server, you must run your processes in the background and handle the process events with event handlers.


Yes, I understand. I wasn't clear about what I'm doing with a server. I am launching an external REST server on application start. I need to know if it started successfully so the application can continue.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


References:
Process.Wait not behaving as expectedLee <t.lee.davidson@xxxxxxxxx>
Re: Process.Wait not behaving as expectedLee <t.lee.davidson@xxxxxxxxx>
Re: Process.Wait not behaving as expectedBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Process.Wait not behaving as expectedBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Process.Wait not behaving as expectedLee <t.lee.davidson@xxxxxxxxx>
Re: Process.Wait not behaving as expectedBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Process.Wait not behaving as expectedBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Process.Wait not behaving as expectedLee <t.lee.davidson@xxxxxxxxx>
Re: Process.Wait not behaving as expectedBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Process.Wait not behaving as expectedLee <t.lee.davidson@xxxxxxxxx>
Re: Process.Wait not behaving as expectedBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>