Deactivate windows MessageBox dialog on exception

Andre Pany andre at s-e-a-p.de
Wed Aug 28 12:19:54 UTC 2019


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 found the source code within DRuntime but I do not see a way to 
hide this MessageBox.

https://github.com/dlang/druntime/blob/25c8c1506183699758ca3bc323bb2a84a1d93f40/src/rt/dmain2.d#L644

I would like to have the exception text available in stdout or 
stderr of the pipe.
Why the exception isn't just written to the pipe?

(I do not want to implement a catch all in the source code of the 
child process).

The actual 2 D applications causing the dialog on windows: 
https://forum.dlang.org/post/usfmuabytdoludeuldts@forum.dlang.org

Kind regards
Andre


More information about the Digitalmars-d-learn mailing list