[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Process.Wait not behaving as expected
[Thread Prev] | [Thread Next]
- Subject: Re: Process.Wait not behaving as expected
- From: Lee <t.lee.davidson@xxxxxxxxx>
- Date: Thu, 1 Jan 2026 12:23:43 -0500
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 1/1/26 12:22 PM, Lee wrote:
I am shelling out to a command for which I need to catch any error message and the exit code.I can't use Process.Wait without a timeout as it is a server and my project application would hang forever. However, when I use .Wait with any value other than 0, the exit code is not correctly set in Process.Value.Am I misunderstanding how Process.Wait should work, or is this unintended behavior? Demo project attached.
Oops, almost forgot. This is with Gambas 3.21.1. -- Lee --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ---- --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
| Re: Process.Wait not behaving as expected | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Process.Wait not behaving as expected | Lee <t.lee.davidson@xxxxxxxxx> |