Comment #0 by daniel.keep+d.puremagic.com — 2007-11-25T08:32:30Z
If an exception crosses the boundary between a DLL and its host, it causes the program to crash out to a system dialog. This effectively makes D-based DLLs useless, unless you wrap every single call in try/catch. This throws a rather large stick in the spokes of getting Phobos into a DLL.
At a minimum, the web page on doing DLLs in D should be updated to explicitly state this limitation.
Will attach a complete test case presently.
Comment #1 by daniel.keep+d.puremagic.com — 2007-11-25T08:34:52Z
Created attachment 210
Test case
Compile using build.cmd, then execute host.exe. It should get as far as printing "Hello, from plugin2!" before crashing. Commenting out "throw new Exception..." from plugin.d and recompiling causes the crash to disappear.
Comment #2 by zan77137 — 2011-11-26T23:58:26Z
*** Issue 7020 has been marked as a duplicate of this issue. ***