Re: Deactivate windows MessageBox dialog on exception

2019-08-28 Thread Andre Pany via Digitalmars-d-learn
On Wednesday, 28 August 2019 at 13:15:14 UTC, a11e99z wrote: On Wednesday, 28 August 2019 at 12:19:54 UTC, Andre Pany wrote: Hi, I call another process using function pipeShell and Redirect.all. import std; void main() { auto p = pipeShell("a.exe", Redirect.all); p.stdin.writeln("

Re: Deactivate windows MessageBox dialog on exception

2019-08-28 Thread Gregor Mückl via Digitalmars-d-learn
On Wednesday, 28 August 2019 at 13:15:14 UTC, a11e99z wrote: On Wednesday, 28 August 2019 at 12:19:54 UTC, Andre Pany wrote: Hi, I call another process using function pipeShell and Redirect.all. import std; void main() { auto p = pipeShell("a.exe", Redirect.all); p.stdin.writeln("

Re: Deactivate windows MessageBox dialog on exception

2019-08-28 Thread a11e99z via Digitalmars-d-learn
On Wednesday, 28 August 2019 at 12:19:54 UTC, Andre Pany wrote: Hi, I call another process using function pipeShell and Redirect.all. import std; void main() { auto p = pipeShell("a.exe", Redirect.all); p.stdin.writeln("e1"); p.stdin.writeln("10"); p.stdin.writeln("e2");

Re: Deactivate windows MessageBox dialog on exception

2019-08-28 Thread Gregor Mückl via Digitalmars-d-learn
On Wednesday, 28 August 2019 at 12:19:54 UTC, Andre Pany wrote: Hi, I call another process using function pipeShell and Redirect.all. In case the child process(also D application) throws an exception (str to int conversion exception), the child process shows a message box on windows. I fo

Re: Deactivate windows MessageBox dialog on exception

2019-08-28 Thread a11e99z via Digitalmars-d-learn
On Wednesday, 28 August 2019 at 12:19:54 UTC, Andre Pany wrote: and try to use https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-seterrormode SEM_FAILCRITICALERRORS for mother process and child process will inherit it

Re: Deactivate windows MessageBox dialog on exception

2019-08-28 Thread a11e99z via Digitalmars-d-learn
On Wednesday, 28 August 2019 at 12:19:54 UTC, Andre Pany wrote: Hi, I call another process using function pipeShell and Redirect.all. In case the child process(also D application) throws an exception (str to int conversion exception), the child process shows a message box on windows. 1)