Exceptions on Windows being "swallowed"

cartland example at example.com
Wed Nov 27 05:15:10 UTC 2019


On Wednesday, 27 November 2019 at 04:11:44 UTC, Mike Parker wrote:
> On Wednesday, 27 November 2019 at 02:48:53 UTC, cartland wrote:
>> Trying out exception handling. When an exception occurs, 
>> program seems to just exit.
>>
>> dub -a x86_mscoff
>
>
> I compiled it with dmd and ran it directly from the command 
> line and it worked fine:
>
hmmm!
>
> Did you try that? And do you have the MS linker installed or 
> are you using the lld that ships with DMD?

No MS installed. Just using DMD.
-----
dub -a x86_mscoff --force -v
:
Generating using build
Configuring dependent x, deps:
Performing "debug" build using C:\D\dmd2\windows\bin\dmd.exe for 
x86, x86_mscoff.
x ~master: building configuration "application"...
C:\D\dmd2\windows\bin\dmd.exe -m32mscoff -c 
-of.dub\build\application-debug-windows-x86.x86_mscoff-dmd_2089-6ACE9C396DEB2C31A239A4E275587962\x.obj -debug -g -w -version=Have_x -Isource source\app.d -vcolumns
Linking...
C:\D\dmd2\windows\bin\dmd.exe 
-of.dub\build\application-debug-windows-x86.x86_mscoff-dmd_2089-6ACE9C396DEB2C31A239A4E275587962\x.exe .dub\build\application-debug-windows-x86.x86_mscoff-dmd_2089-6ACE9C396DEB2C31A239A4E275587962\x.obj -m32mscoff -g
Copying target from 
C:\tmp\x\.dub\build\application-debug-windows-x86.x86_mscoff-dmd_2089-6ACE9C396DEB2C31A239A4E275587962\x.exe to C:\tmp\x
Running .\x.exe
Program exited with code -532414463
--------

>
> Two things regarding your code:
>

Thanks for the advice. It was just a quick cut and paste from the 
sample code to test.




More information about the Digitalmars-d-learn mailing list